• Hi,
    Separately, the keyword search works as expected, and the Custom Post Type filtering works as expected. However, together, the keyword search results are not filtered by custom post type. Search seems to return keyword results as well as Custom Post Type results.

    Shouldn’t the functionality return the intersection of the two?

    The querystring parameter is showing ?s=welcome&post_types=managermeeting
    which appears to be correct, however my results seem to returning the union of the two.

    Can you let me know if there is a fix for this, or if this is the expected behavior? Thanks in advance for your help.

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

Viewing 1 replies (of 1 total)
  • Plugin Author DesignsAndCode

    (@designsandcode)

    Hey there

    It sounds like you have something in your setup checking to see if a search term is set, and if it is, changing the post type to something like posts or pages.

    Check any custom code or pre_get_posts filters and other plugins you have installed to see if there are interfering.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Problems searching by keyword with Custom Post Type filtering’ is closed to new replies.