My custom taxonomy is “topic” – I needed a page to display all the topics at /topic but it gives a 404.
So I created a normal page in the WordPress admin with the slug /topic. Then I select the template for the page manually:
function add_custom_templates( $original_template ) {
global wp;
if( isset( $wp ) ) {
if( $wp->request == 'topic' ) {
return trailingslashit( get_template_directory() ) . 'page-topic.php';
}} add_action( 'template_include', 'add_custom_templates' );
Excuse the formatting – this editor is nasty!
Related Posts:
- Set a CPT slug as a base name for all the taxonomies
- Page not found for custom post type UI plugin and taxonomy
- Custom taxonomy template list not working (404)
- Custom taxonomy returns 404 even with saving permalinks
- Custom post type single page returns 404 error
- Getting hierarchical custom post type permalinks to work just like pages
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- Custom post type archive 404’s with paginate_links
- How to limit the number of terms (terms acts like categories)
- Taxonomy count per Post type
- Custom Post Type – Taxonomy Dropdown Menu?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Taxonomy term in permalink
- Query Custom Post Type taxonomy type based on page
- Filtering Posts by Multiple Taxonomy Terms such as in an Admin Post Listing?
- Disable Single Post View for Specific Taxonomy on Custom Post Type
- How would I leverage custom Taxonomies in this scenario?
- How to show term-specific post list, without posts associated with child terms?
- Group list of posts by taxonomy and allow for pagination
- Custom Post Type with Custom Title
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- How to remove CPT comment feed from head?
- Disable WordPress Recognizing Path as Attachment
- Custom Taxonomy archive returns 404
- Custom post type taxonomy template
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Pagination with custom post types results in 404 issues
- How do I display custom post types through a common taxonomy?
- Paginate_links won’t create the right links on a taxonomy filtered custom post type archive
- Category page only displaying the posts from a custom type
- Bug when editing custom post type category?
- custom post type and custom taxonomy url conflict
- Having trouble understanding custom post type and taxonomy :/
- How to filter out post type meta?
- tax_query returning all posts instead of selective posts in WP_Query
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- How To Create A Custom Taxonomy 404 Page
- Query Multiple Taxominies Across Multiple Post type’s
- Custom taxonomy in URL showing 404
- Custom Post Type Draft Preview Goes to 404
- Update permalinks when new category added to custom post type taxonomy
- How do I display content to users who are not logged in instead of 404 on Private custom posts?
- Taxonomy custom post type URL
- How to build custom route by adding taxonomies to URL ? ex: www.demo.com/communities/palo-alto/
- How do I display the taxonomy for a custom post type in an array
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Suggested Post and Taxonomy structure
- Get the taxonomy of a post hierarchically
- Custom post type permalink tag 404
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Multiple tag cloud filtering
- Get url.com/post_type/taxonomy/term work!
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Linking from CPT page to taxonomy.php
- Custom rewrite to fetch feed data
- How to get all Custom Post Type Filtered by one Specific Taxonomy Term
- Filter second dropdown (tax) based on first dropdown (cpt)
- Archive-posttype.php isn’t loaded
- How can I create an automatic drop down menu with my tags?
- One Custom post type 404’s others don’t
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Get assigned post categories
- Query custom post types & Taxonomies and list them in a table on a page
- Creating custom post type posts and associating them with a post from another custom post type
- Group Custom post type in a taxonomy page by its child taxomony
- Getting List of child terms from custom taxonomy parent
- Custom taxonomy query showing more than 4 posts
- wp_dropdown_pages with tax_query clause
- Building a Data Intensive Website with WordPress
- Custom post type, taxonomy and admin bar
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- How to get post count of specific taxonomy that have store name & category
- Do post types share the same records using the same taxonomy?
- Filter taxonomy by CPT
- Custom permalink structure for custom post types including multiple taxonomy
- How to group custom posts in admin menu based off taxonomy/postmeta
- How to get current post type?
- Get all posts for custom taxonomy term
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- Multiple Custom Post Type with different Taxonomies
- 404 error next-page [2] PageNavi custom type taxonomy
- Wrap an X amount of taxonomy posts in a separate Row in WordPress
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Taxonomy’s title
- Display all posts from single taxonomy term
- Filter By Term Not Working – Custom Post Type
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Simple term-archive-linked Taxonomy Entry output
- Custom Search not working
- Custom post type post taxonomies
- Problems with custom post type and hierarchical permalinks
- How can I set up the URL for a category archive for a custom post type?
- Submiting custom form give error 404
- Structure of custom post type / taxonomy?
- List custom taxonomy terms
- Query multiple post of which one by taxonomy
- Display associated taxonomy child name on single CPT page
- Issue On Listing Woocommerce Parent Tag List