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
- Taxonomy archives based on Custom Post Type
- Semantic URL Custom Post Type and Taxonomies permalinks
- Pagination with custom loop
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- get_categories() for only CPT
- Custom Post Custom Taxonomy Data Not Saving in Edit Screen
- Display CPT posts based on specific taxonomy
- Why get_posts() not returning only selected category posts from Custom Post Type?
- How to use custom taxonomies to reference complex relationships?
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Get url.com/post_type/taxonomy/term work!
- How to get WordPress term attached to the Post?
- SEO Concerns With Rewrite Rules
- Empty taxonomy items for CPT in admin grid
- How to get_term_meta on single custom post?
- Need help with Custom Taxonomy + Custom Post Type
- URL for archive of custom post type with 2 taxonomy terms
- Cannot save pages after migration
- Display 3 level taxonomies
- How to show post which has the specific taxonomy terms?
- YearWise Categorywise Post
- Add Excerpt On Quicksand Plugin
- Custom Post Types on Custom Categories