This topic has 4 replies, 3 voices, and was last updated 9 years by sharmstr.

  • Author
  • #34363
     Ben
    Participant

    Hey,

    I have tried to edit the search form on my home page, i have added a few posts and disabled the demo posts, i have chosen to only show “posts” when searching but for some reason it shows all my pages when searching for something.

    my site is called http://www.thedesignshare.com try entering the word “type” or “design” in the search field and it comes up with random pages when I’ve specified that i only want posts to be shown.

    any help would be much appreciated.

    Cheers Ben

    #34364
     sharmstr
    Moderator

    The live results (the list that expands under the search bar) only shows posts like it should. Specifying “posts” doesnt control what wordpress shows on the search results page only what’s displayed in the live results.

    It should be easy enough to add with the pre_get_posts filter. I’ll work on that later and get back to you.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #34532
     sharmstr
    Moderator

    Hey Ben, I was able to get something working but not for all custom post types. I can give it to you if you just want that search bar to show results of standard wp posts.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #44495
     marceltj
    Participant

    @sharmstr Any idea on how to make search with non post type? Trying to get SabaiDiscuss to work with search 🙂 They, for whatever reason, did not use custom post type.
    Not even sure where to begin but any pointers would be great.

    #44496
     sharmstr
    Moderator

    I do not. Sorry.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?