Don’t name your custom page template archive.php. If you refer to the Template Hierarchy, you’ll see that archive.php is the template WordPress loads for archives if a more specific template isn’t available.
Related Posts:
- Archive permalinks
- Permalinks for WooCommerce Categories and Subcategories
- Rewrite url / permalink for default archive – yearly / monthly
- Display only posts from referred category on date archive page
- Change of permalink structure – redirects in htaccess breaks the archive links
- Custom permalink for search and pagination
- WordPress subcategories return 404 in custom template
- Programatically changing post’s permalink when identical post type is published
- Date Archives’ Permalinks under Category folder
- Can’t select blog month within archive category
- Advanced author permalinks
- Disable date based archives for all categories except one
- Path to Pages Resolves to Archive instead of Actual Content
- permalinks issue and archives
- Get current title of archive.php
- Change permalink structure for pagination only
- I Need to use Month , year in my all archives and pages of my wordpress site
- How to make different urls for some tags pages
- Strip subcategory base from URL
- archive by year and category: permalink support doesn’t work on pagination
- Customize URL for specific tags archive
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- Permalinks custom base to redirect to archive.php
- Custom taxonomy return 404
- Permalinks – Archives
- Permalink Rewrite with Archive – Archive gets 404
- Permalink, links a page to the homepage
- Permalinks of archive tag wordpress
- WordPress archive posts returns user to homepage
- Post archive pages bringing me to a 404 page
- Strip category base from URL?
- WordPress 3.6 – archive.php doesn’t get triggered [closed]
- Alternatives to archive.php
- Change media item permalink
- Creating custom permalink structure for languages
- What is the difference between get_permalink vs get_the_permalink?
- Is the permalink structure /%post_id%/%postname% faster or slower than just /%postname%?
- Using underscores instead of hyphens in the permalink
- How can I force WordPress to redirect to canonical permalinks?
- Changing pemalink structure to /%post_id%/%postname%/
- Update Old Links To Pretty Permalinks Custom Post Type
- WordPress Permalinks %postname% for RSS2 Feed URL
- remove permalink trailing slash
- Use Single Blog Post as Site Front Page Without Redirect
- wordpress permalinks tweeks
- generate custom permalink based on a custom field
- Redirect old permalinks with Month and name to Post name on new site
- Getting links to work the same on development and production
- stop the_permalink printing and save as variable?
- Change author slug and functionality
- Setting up two separate blogs while using WordPress as a CMS
- Custom theme navigation
- get permalink and append it
- How to redirect to correct pages after permalink structure change
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Only plain permalinks working
- Category being displayed without base parmalink
- next_posts_link URL does not include name of custom post type
- How to remove specific category from URL in WordPress
- How to set permalinks when posts and pages have different URL structures?
- redirect/ %category%/%postname%.html to /%category%/%postname%
- WordPress disallows changing page to a specific permalink
- Permalink Doesnt Work – URL Not Found
- WordPress 4.4 old permalink redirect
- 404 when going to /blog
- WordPress keeps giving me the wrong permalink
- How to check if the current page is the permalink page?
- Some Pemalink problems, probably caused by wrong .htaccess configuration?
- Permalinks set to /%postname%/ but still have links being indexed in the form ?p=x
- wp_get_archives doesn’t take effect from css or html
- What happens to the permalink that use %postname% if I change the post name
- Limiting the Archive page to posts posted by particular author
- How to Fix an Archive.php That Displays All Posts?
- Issues when changing permalink Structure
- Assigning proper permalink to blog that is part of a website
- What would cause a 500 Server Error with permalinks turned OFF?
- Changing permalinks back to default ( ?p=123 )
- permalinks on title tag
- Non Latin page permalink problem
- New posts link to old posts (random)
- Custom permalink structure for product
- Post links broken after migration
- How to change permalink for listings
- WordPress Pages that use Domain URL
- wordpress admin panel loop on nginx
- Can’t access new WP install on subdirectory
- WordPress Permalinks
- How to change link of an uploaded file to the media library
- On Macbook, my permalinks with post name don’t work. Returning 404 error
- WordPress pages break with custom permalink settings (theme directory not output)
- Remove /index.php from Permalink
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Get link from wpe_excerpt “read more” and move it
- Pretty Permalink for Search Queries Not Working
- WooCommerce product permalinks
- Include other parameters in permalinks for better management of browser history
- I changed rightly the permalinks but I get empty pages in the final posts
- Different template fallback when changing permalinks
- Pages resolve at different URLs (different capitalizations)
- ‘Unsupported Operand Types’ error stemming from taxonomy re-writes with PHP 8.1