custom query pagination URL problem
-
I have a search form with 3 fields:
search text field named “Search”
order by drop down menu named “order”
date picker named “date”
and a custom WP_Query to display the search results
and WordPress pagination function
the search results are displayed correctly
however when I try to go to the next page it also displays the next page results correctly but the URL doesn’t look right the URL looks like this:/page/2/?search=run&date#038;date
it works fine when I comment out the date picker field
I tried replacing the date picker with an input filed named “cat” and it works finethe problem comes back when I have the input field named “post_status” or “age” or “post_type” of “date” or “year”
these are the names that I tried so far/page/2/?search=run&post_status#038;post_status
How can I fix this URL problem?
How can I have a date picker in my search from with out causing this URL problem?
The topic ‘custom query pagination URL problem’ is closed to new replies.