WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom post type I created, and a page that displays each entry. I have an area where I can filter the results through a search form. It works good, except when I press submit, the current parameters get removed, causing me to get a 404 on an incorrect page. Here is what I mean.

The page lives on a URL: /wp-admin/admin.php?page=submissions.php

When I submit the form on the page, the URL gets changed to this: /wp-admin/admin.php?date=06292013&name=john

As you can see, ?page=submissions.php gets removed, therefore the page gets changed, into a 404. How do I keep the current page I am on, and the other parameters?

share|improve this question
Have you tried to use add_query_arg()? – kaiser Aug 14 '13 at 19:26
And please show the code where you're adding the link. – kaiser Aug 14 '13 at 19:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.