Don’t use a query variable that is used by the WordPress Core. That is, none of these.
You are using year. WordPress will latch onto that and process the request according its internal systems. Try something more distinct like hmg_year.
Related Posts:
- Custom search page and search by title, content and tag
- Hi, I wanted to make custom search with multiple fields
- Custom Loop Query For Search Page
- How to create custom search page
- WP Search Form Query: Add Author’s posts into search query
- Search a meta field for a value in all posts
- How to *remove* a parent theme page template from a child theme?
- How to Change 404 page title
- WordPress Paginate $wpdb->get_results
- Custom Search Query
- Filter the query ONLY for the search results page
- How to redirect WordPress home page to custom static HTML page
- How can I create an alternative home page?
- Creating search form for custom database table
- Search through custom post type and custom fields takes 5 minutes
- page_template toggle between 2 templates + 2 permalinks for same post
- Create subpage /user/ or /my-profile/ like /author/ with additional query like /user/user123
- Customise search form in the Widget
- Comment filtering (search)
- Combine multiple words in custom meta search query
- Retrieve and display data from custom db table in admin area?
- How to find if a post with custom_field == X exists?
- Modifying loop on a custom page, strange behaviour
- How do I deque the default stylesheet?
- Woocommerce Product page edit
- For custom templates, is it better to use `template_include` or `type_template`?
- Search a post using the date it was posted
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- How I display post of the post type group by year of post?
- Custom URL going to 404
- Search result page redirect ex.com/?s=searchterms to ex.com/searchterms
- Load more posts with multiple queries
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- need help with a user-specific custom page template
- Steps for custom data retrieval
- Prepopulating a specific page template with HTML/CSS
- custom meta box for page default template
- Custom search to display results within same page
- Search widget will search everything in the site, how to limit to only search gallery name
- $wpdb->replace: WHERE?
- wp_query get post custom taxonomy in search.php
- Order posts with a custom field but also without
- How to hook up search results page to a back-end page?
- Admin search post meta
- Save title as custom field on custom post type
- List top 5 authors with most posts
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Add content in between of foreach
- Add a searchbox to the body of a page
- Custom Search on Custom Page while preserving the main search function
- Search URL parameters query [duplicate]
- Custom SELECT Query With Multiple Meta Values (Ordering Problem)
- Applying WP-cli Search & Replace to Static SQL Dump File
- Query for specific custom field
- WordPress archive index page
- Display posts by combining multiple meta key
- Custom select query two tables by a meta key
- How to create a custom WordPress front page
- Fatal error Call to a member function insert() on a non-object [closed]
- change top banner content on specific page
- custom user meta query
- How to Add Additional Search Button?
- How to set up conditionals in page templates?
- Recent activity query WordPress
- How to query term_id of a Custom Taxonomy by name
- How to Clear Empty Search values?
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- How To make Custom page of every Category
- Remove Sidebars from page
- query variables for custom taxonomies
- WordPress search on a custom table
- Adding overlay search to wordpress using add action/filter
- display text generated via custom get query string
- Product page not found if product data is set Appointment Service
- Page with some post value id showing page not found
- Allow WP users to sort search result on a videos site
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- Custom query pagination with php parameter as arg problem
- Why does a custom php code inside a custom template not get executed?
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- Create page when a new site in multisite network is created?
- Add to search posts query array with post IDS which will appear first
- How to automatically pull an information from a form field onto an other page?
- Query Posts to display all posts with category “custom field value”
- Custom dropdown search form that allows users to select option B based from Option 1
- Custom stylesheet not loading
- Displaying Child Page’s Information
- Query 1 custom post type, each day, alphabetically
- Custom search results
- WordPress custom search – pagination
- Creating a search with tag variable also added for more detailed results
- What shortcode should I use for
- Multiple Taxonomies Using Custom SQL Query
- Two searchforms with different categories/posts per page
- Adding pages to the Admin panel
- Setting Custom WordPress “Posts page” AS “Front page”
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Custom search by several options send on form not works
- Page template with custom html fields inside a content
- Search results load individual post in slide out div