It doesn’t use archive.php
because it isn’t an archive
example.com/?post_type=mycustom
is still the homepage, but with an additional query parameter
Instead, use the custom post type archive at example.com/mycustom/
Related Posts:
- What is the link to my default “archive” page?
- Outputting Canonical Resource URLs Across a Multisite Network?
- Custom Post Type Archive URL takes over page URL
- wordpress – load a template based on the URI
- Post formats template
- Same template for all the terms of a taxonomy
- Set template based on query in URL
- Get link to a specific template file [closed]
- URL / Templating system advice [closed]
- Different templates for same content, landing page from different URLs (generic, simple)
- Use one template only for custom post type archives?
- What is the best practice to style archive page 2,3,etc differently than archive.php?
- How to use index.php as a template for archives?
- Archive template limiting to 4 entries?
- Force WordPress to NOT display the manual excerpt
- Can a link in WordPress contain a query string that is picked up as $_POST
- Turning archive templates to a page template maintaining the slug
- Archive only for /year/month, not terms
- Custom Taxonomy Theme file not routing correctly
- how to change custom post type search template to output search results in posttype-archive.php
- Is it possible to return a specific tag archive/template as one of the search results?
- Is there a list of all possible WordPress URL’s?
- Tag Posts showing in wrong places
- Problem with permalink structure for WordPress custom post_type archive template
- How do I get the size of an attachment file?
- Using WordPress templating for HTML emails
- I put my blog on a subpage, how do I get page title?
- Restrict a search to a custom post type
- Test if page is child and has children, if so echo child pages also on grandchild pages
- How did you incorporate WooCommerce in your own WordPress theme?
- A shared custom taxonomy between two custom post types
- Creating a custom category page with pagination
- Modifying searchform.php and search.php to have two kinds of searches
- Hide Front-End Admin Bar Including 32 px Spacing
- Passing variables to template parts
- Show template loaded
- Change directory where get_header(), get_footer() and get_sidebar() look for templates
- How can I make my custom templates respect permissions?
- How to format shortcode’s HTML in external file
- How to replace WordPress sidebars (widget areas) with Gutenberg
- Unable to include a template
- Turning on the 404 page on localhost
- Checking for page templates in child theme
- Is there an action hook that fires just before a template is loaded?
- post edit button on front end
- Stylesheet comment header: Which header names are mandatory? [duplicate]
- How to add posts list to a page template?
- What is this code trying to do? It was the cause of my 20s TTFB
- get_post_metadata() undefined when used in loop in RSS template
- the_excerpt producing empty output
- Problem when linking out to separate file within foreach loop
- Getting term description in single post template
- Cannot edit style.css from admin panel, because the template is looking for style.min.css
- Can I add a default Block to my custom theme?
- Remove post templates from the selection box menu when creating a single post
- How to convert the WordPress meta box Page Attributes->Page Template dropdown to radio buttons?
- How can I get this request to use the Custom Post Type page template instead?
- Best practice to update the file header.php
- page-{slug}.php vs. template-{slug}.php
- wp_enqueue_style and different styles for blog template
- get_header(), get_footer() from plugin template
- Problem creating a custom category page with pagination
- How can I use archive-{post_type}.php theme template?
- If Posted After Date
- how can I add a “read more” tag directly in the template?
- Update template without undoing all my edits?
- How to get and set the post tag value within WP Query from URL?
- How to display specific child page template in wordpress
- Image loading function not working on archive.php template
- How to use a template file to show all post having same metakey
- WordPress archive index page
- Automate configuration after new/hosted installation
- Modify just ONE page based on a template
- which template does wp_ tag_ cloud point to?
- Pagination problem (plugin wp-pagenavi) with a custom post type?
- Add an anchor link to a ‘plain’ HTML file, without over-writing the entire site?
- Permalink Short code showing unnecessary link text inside the loop
- Template part including not working
- Parent/Child themes – both CSS files loaded
- Template and URL parameter problem
- get_users by role returns all users
- Prevent Archive URLs
- Validating Error with submit button
- How can I alter a post?
- What is the purpose of the $before and $after arguments on the the_title() function?
- Remove ” Browse Category : ” from Archive title
- Custom Post Type tag taxonomy “Page Not Found”
- When to use content-pagename.php?
- Current URL path variable
- How to install a wordpress website template on an existing website?
- Why is my no-results.php template moving my sidebar and footer into the main container?
- Given a page ID, how to display entire page (header/content/footer/sidebars) from a plugin hook
- Any way to insert text on page from a query results?
- Show page title just from the first child-page in template
- Can you orderby slug in a taxonomy archive page using WP_Query?
- How to know which page/file WordPress is expecting?
- AJAX requests within templates
- Page.php vs Single.php
- templates page not showing on gutenberg editor
- How to load php templates from html page (block theme)