This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Search Page 404 error, when creating custom search form & page from child theme

  • Creator
    Topic
  • #22557
    John
    Participant

    I have a search form with this action:

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #22565
    Jason Bobich
    Keymaster

    Hi John,

    Does your form use the “s” name value on the input? That’s probably it. Doing anything ?s=example in the URL of your page is already reserved by WordPress.

    1) If you’re trying to do a search that builds on what WordPress does and customize it further, then you can’t have a custom page. But you can filter into pre_get_posts and pull in other form values you’ve passed, to modify the default WordPress search query. ?s=example&foo=bar

    2) Or, if you’re doing a completely custom query with a custom page, you can’t have an input with name “s” in your form. You need to make it something else. ?my_s=example

    But let’s try to keep questions here specifically to Jump Start. This is bit out of the scope of support I can offer you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.