CPTs in search box

This topic contains 4 replies, has 2 voices, and was last updated by  mld1000 9 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #123331

    mld1000
    Expired Member
    Post count: 62

    Is it possible to have only the current CPT (rather than all CPTs) show up in the search on the listing and search pages?

    #123424

    Guust
    Moderator
    Post count: 29970

    On the listings pages, the search defaults to the current CPT, so that choice could be hidden with CSS maybe.
    The CPT field in the search on the search pages defaults to the CPT searched.
    So you could hide the CPT field with CSS if you can target those pages:

    .search_by_post {display: none}
    #123527

    mld1000
    Expired Member
    Post count: 62

    I wasn’t clear on this. I understand what you wrote above. Let me try again.

    There are three boxes in the search bar. In the first, the current CPT is displayed as described by you above. However, if you click on the box, you see all CPTs. Can the others (the not current CPTs) be hidden?

    #123643

    Guust
    Moderator
    Post count: 29970

    Only by hiding the whole search_by_post field.

    #123685

    mld1000
    Expired Member
    Post count: 62

    thanks

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount