• Resolved brad1004

    (@brad1004)


    Hi can anyone help or suggest a fix for this issue.

    I am using custom post types – if you perform a search without parameters selected the results page adds an ” S ” in the url (mysite.com?post_types=my-custom-post-type) – and wordpress defaults to the index.php page instead of the custom archive page.

    Removing the ” s ” in the url and the correct archive page loads
    (mysite.com?post_type=my-custom-post-type)

    Many thanks
    Brad

    https://ww.wp.xz.cn/plugins/search-filter/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter brad1004

    (@brad1004)

    Hi

    I was wondering if anyone can comment on whether the pro version has the same problem in the generated url

    Thanks

    Brad

    Plugin Author Ross Morsali

    (@designsandcode)

    Hi Brad

    It is correct to be showing “post_types” rather than “post_type” – WP only supports one by default in the structure, so I added this so that you could potentially have multiple post types selected for example.

    However, like you say then the CPT archive template doesn’t kick in automatically, and you end up getting your homepage.

    S&F Pro doesn’t have this problem, because in the admin you will be able to choose which template file from your theme is used for displaying your results 🙂

    Just ot let you know, S&F pro creates a search page, which is a bit different to free – but it solves this exact problem!

    Thanks

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

The topic ‘?post_types= should be ?post_type= – Any Help?’ is closed to new replies.