First, you shouldn’t do this with the built in post types of post
or page
. Use a custom post type.
Example:
movies
andseries
, where
movies
is non-hierarchical, but
series
is.
Use register_post_type()
and set hierarchical
to true
(default: false
). Take a look at the rewrite
argument > with_front
to prepend /series/
.
Then add some templates:
- series-list.php,
- series-detail.php,
- series-season.php,
- series-episode.php…
Related Posts:
- How do I disable the built-in editor and automatically configure the properties of new pages?
- How do I append multiple taxonomies to the URL?
- Custom Taxonomy with Custom Post Type Finds No Posts
- Get page by template?
- Get custom post type by category in a page template
- Associating an “author” with a custom taxonomy
- Correct way to use a form to to filter custom posts by taxonomy terms?
- Showing current taxonomy terms
- automatically create taxonomy with same name as post title
- Query posts by custom post type and custom taxonomy
- Custom Taxonomy conditionals
- After deleting a post are terms, and custom meta deleted?
- Best practice for adding posts in bulk
- WP 3.1 getting tax_query to work in query_posts()
- Programmatically adding posts
- Keep main articles and author blogs seprerate, News / Magazine like site
- Multiple portfolios with one custom post type?
- Is it possible to use pages to apply static content to each taxonomy level?
- Why is my custom loop not filtering correctly nor paginating?
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- Custom post types with custom directories
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- How to customize admin posts based on the user who is logged in
- Show Two custom Post type and their posts on category page
- How to create an advanced filter search?
- Weird problem happening with custom taxonmy when creating/updating posts
- Should I use custom taxonomy or custom post type
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- List custom taxonomy specific to one custom post type
- How do I move/order posts with a tag to the end?
- WordPress sort search results by custom order
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Hide parent categories when clicked, and show it’s childs
- How to start a new post with custom Taxonomies already set?
- How to add attributes to taxonomies that may be different from post to post?
- Migrating a taxonomy’s tags to the native category
- Top Level pages in wordpress giving 404, but child pages working fine
- How to produce a sub-page-system in WordPress
- custom post type vs. conditionally displaying meta boxes for specific terms?
- List Categories (wp_terms) and count posts
- attach CPT data to a taxonomy
- Conflict between wp_list_pages and get_posts – list pages not displaying
- Creating a non-hierarchical Taxonomy that behaves like categories
- Display Custom Post Types Glossary
- How should I structure complex content hierarchies?
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Get terms for a specfic post from multiple taxonomies in custom post type
- How to list posts by term (custom taxonomy)
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Custom taxonomy not saving correctly
- Related “custom post type” using “custom taxonomy”
- How do I ensure that post_type and Taxonomy use the same slug?
- How to have multiple search result pages in wordpress with taxonomy terms listed
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Set a Default CPT taxonomy by taxonomy id
- Displaying posts inside table having issues
- Show posts from custom post type sorted by category/taxonomy on a one-pager/page
- Building Link List for Custom Tax
- CPT: multiple loops with different terms
- Help with Travel Guide Setup
- WordPress query posts by custom post type not workng
- One Post with different content, depending on a Page
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- WP_Query for CPT with filter by another WP_Query
- Sort by Custom Post Type (Multiple Loop)
- How to Associate Posts with Pages
- Get link for feed of specific post type AND taxonomy
- Inserting two categories
- Highlight specific menu item when custom post is page
- Advise on Custom Taxonomies and Structure
- cannot export data from CPT UI (books)
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- An script/Plugin for automatic page creation per term
- How to develop Knowledge center in WordPress Website
- ACF – Tags not showing up in Custom Post Types
- Subpage for Custom Post Type
- Custom post type URl Cutomization
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Custom Taxonomy Permalinks Redirection
- Only show posts from a certain category?
- Query Multiple Taxominies Across Multiple Post type’s
- WordPress as Wishlist Application
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Getting rid of /my_custom_post_type/ in the single view URL
- Use different taxonomies in different custom post types’ permalinks?
- Custom post type menu missing after 3.0b2 -> 3.1.2 upgrade
- Podcast Guest List
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Custom Post Type – List all attachments on Edit Screen
- How do I create filters for custom post types?
- Set menu active state for custom posttype and category, given custom taxonomy term
- Disable featured image
- custom permalinks based on taxonomies for custom post type
- Archive page for taxonomy terms
- Custom Taxonomy Invalid in REST API
- How do I get array of types associated with a taxonomy?
- get_post_meta returns empty array for terms