Disable one CPT search

This topic contains 3 replies, has 2 voices, and was last updated by  Guust 6 years, 2 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #447260

    Himadri Goswami
    Expired Member
    Post count: 86

    is there a way I can disable CPT selection for a particular cpt in the search widget?

    My one CPT is non location and for link type purpose only. It would have been great if the [gd_search] had option for that.

    #447265

    Guust
    Moderator
    Post count: 29970

    You can do that with this CSS, adjust as required:

    .search_by_post option[value=gd_event] {display: none;}

    https://wpgeodirectory.com/docs/common-styling-examples/#cpt-post

    Thanks

    #447298

    Himadri Goswami
    Expired Member
    Post count: 86

    ok resolved! thanks.

    #447303

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 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