Make sure that the page template is applied to the correct page and you are accessing the correct URL
and then go to the Settings > Permalink and save permalinks one or two times.
That should clear the older rewrite rules and make the new page template work instead of sending you to the 404 page
Related Posts:
- get_query_var function not working at all
- paginate_links ignore my format
- Query two taxonomies via URL or link?
- A WP_Query that will look for posts after 2 weeks ago OR with a certain meta value
- How to combine tax_query and date_query in WordPress
- Determine WP_Query parameters from URL
- Why I can’t get old posts instead of recent with WP_Query?
- Why query_vars get altered in WP_Query Object?
- WordPress query vars are not added
- Get posts for last working week in WP_Query
- WP_Query date_query – Use unix timestamp?
- Rewrite rule to prettify two $_GET variables while in a new endpoint from a page
- Date and Category query with filter
- Changing WP_Query params with url Query Var
- query_vars filter not working even though query string parameter is present
- add_filter(‘query_vars’) not working in custom template
- How to get a query variable?
- Only display post if published in last 24 hours?
- how to access query string in wordpress?
- Query Vars Not Set in Main Query
- date_query in pre_get_posts out of memory
- Query_vars support in Rest API
- date_query is showing duplicate results
- How to add date_query to meta_query array
- Own query vars are not displayed
- How to redirect a query string to a “virtual” subdirectory
- Archive – Show Page Month Headers
- Passing query variables to a custom page template
- query_vars category_name only display one catgory out of multiple categories
- How to query posts based on lat-lng coordinate as post meta?
- How to trigger 404 for custom query var?
- Calling a wp_query $posts causes a 500 error
- WP_query taxonomy + get all posts with two terms from same taxonomy
- How do I create my own nested meta_query using posts_where / posts_join?
- Best Practice For Querying Grandchildren?
- wp_query display posts from same category of the post
- wp_get_post_terms of cpt but not duplicates if they are used more than once in the loop
- How to prevent queried posts from being added to cache?
- Order posts by meta value and Date
- How to make orderby ‘meta_value_num’ OPTIONAL?
- Pagination working everywhere but the index page
- How can I query posts with newly uploaded images?
- Conditional arguments WP_Query for post custom fields
- How do I search inside specific taxonomies in WordPress
- Random loop with code to prevent duplicate output returns no output at all from time to time
- Single meta_query query using OR instead of AND in request’s WHERE statement
- What’s the purpose / logic of split_the_query in WP_Query->get_posts
- remove query arg from url after set query
- How to loop for every result found in the_content() when using the search query?
- if statement in wp_query arguments
- Order By table field comment_status in WordPress > 4.0
- Slow WP_Query for custom post type
- How to build a WP_Query using mulitple tags and using AND or OR operator between them
- Using hook to use DISTINCT in a wp_query
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to restrict the search fields for a specific post type
- Pagination links missing for first link (1) and previous button? How to get pagination links to work?
- Query with relation and one without relation using multiple taxonomies?
- WP_Query with different postmeta filter for each categories
- Automatically Query Parent Taxonomy
- Shouldn’t I be able to modify the main query by this filter?
- insert value from html into data base with wordpress
- Debugging wp_query orderby for taxonomy
- Get all posts which was posted on X Days WordPress
- Display posts with specific value first in query
- wp_query comment and meta query
- Show menus to one admin username
- inserting content of 1 Post to in another with a template hierarchy
- Get the child category ID of current category
- I need to run a AJAX Fuction from within a WP_Query but only works on first item
- Category not being selected
- WP_Query with 4 post meta field arguments gives 500 internal server error
- Limit number of posts in WP_query per month
- How to filter a static post page with ajax and $wp_query
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- how to translate countries output from wp database?
- Custom query does not find pages
- wp-query and wp_get_post_terms on custom taxonomy archive page
- Display posts ONLY from the current logged in user and current week/year/month Elementor posts
- What’s wrong with this meta query? (order by meta key, then title, doesn’t work)
- get_posts function not returning any results
- INNER JOIN custom tables – SQL Query
- SELECT TOP 1 in wp_query for each groupby meta value
- Get unique post by meta value using wp_query
- How to display author meta and count numbers for each user in comment.php?
- update_post_meta() not updating
- XMLRPC pingback.extensions.getPingbacks not work with parameters
- Get posts meta_query by repater field
- WordPress pagination not returning posts on second page
- Track write actions to the database
- How can I use two custom fields in WP Query
- How can I use a specific wordpress page template if certain words are used in page title [closed]
- wp-query with a tax-query relation of NOT
- how to exclude store in clipper theme wordpress code php
- Get a list of the last posts grouped by author and filtered by category
- How to return value from sql and display it
- Letting users sort posts
- Get comment number by date range?
- WordPress Show 4 posts from 4 specific categories in a slider
- Is there another way to retrieve a post_id from post_meta other than a SQL query?