• Search & Filter admin settings discovered custom post type categories

    when I use them in shortcode, things display perfectly, showing the correct categories in dropdown

    however upon search the results come back with all post types (ie. regular article posts)

    is there a way to limit search results to the original shortcode post type?

    thanks

    https://wordpress.org/plugins/search-filter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ross Morsali

    (@designsandcode)

    Have you checked the post types option?

    http://docs.designsandcode.com/search-filter/#options

    Thanks

    Thread Starter wasanajones

    (@wasanajones)

    Hi – not sure what I’m supposed to do with that… looks like the kitchen sink, when I only need a rubber washer to stop a leak

    I don’t want a separate widget for every post type, I want results to be limited to the dropdown type selected

    Plugin Author Ross Morsali

    (@designsandcode)

    Ah I missed your point – so in this case something is likely modifying the query and also changing the post type of searches (something outside of S&F) – try the usual – disabling plugins / switching themes..

    It would be near impossible to guess where the issue is – but any query in WP can be modified easily with the filter pre_get_posts – so its not possible to prevent other plugins, themes, custom code from affecting search results – we just have to hope that people are using these filters correctly.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Post Type search shows all types’ is closed to new replies.