A way of arranging items where an item can be a parent or child of another. Categories are an example of a hierarchical taxonomy.

learn more… | top users | synonyms

0
votes
0answers
13 views

WP Custom Post Type permalinks with category [duplicate]

I am trying to accomplish the following: Website will contain a section titled "resources". I would like to separate the content using content post types. Post Type: Resources ( This i can create via ...
0
votes
0answers
14 views

How to Create Hierarchical Directory for Nation Wide Mental Health Services

I'm to build a hierarchical directory for an online portal of nation wide mental health services. Is there any suitable option in WordPress? I've already created the news portal section of that site ...
0
votes
1answer
32 views

Rewriting hierarchical post type

SO, I'm having an issue where I need to rewrite a hierarchical custom post type. The custom post type is called "Destinations" and it hold regions, countries, and holidays. There is already content on ...
0
votes
0answers
17 views

Need help understanding a rewrite with multi-level taxonomy

I am trying hard to learn how to do rewrites. Not having really any understanding of regex is obviously not a good start. I have a cpt books and a taxonomy book-publishers-series. I have written the ...
0
votes
0answers
33 views

How can I add a “fake” parent into the permalink?

I have a custom post type of books and a taxonomy of book-publishers-series. I am trying to do a rewrite so that my urls look like: ...
-1
votes
1answer
25 views

How do I assign the post parent?

I am trying to connect two custom post types. Through lots of googling, I found the following code that adds a meta box to the admin screen to select a post from another post type as the parent, but ...
1
vote
2answers
70 views

How to set parent-child relationship between differents custom post types

I have just set up a post/parent relationship between a post type "episodes" and a post type "cartoon-series." I used this bit of code to add in the meta box to assign the parent from another post ...
0
votes
1answer
35 views

How should I structure complex content hierarchies?

I am pretty new to WP and I have not had to deal with any overly complex content structures as of yet. Until now. I'm trying to figure out the right mix of Custom Post Types, Taxonomies, Pages, etc. ...
0
votes
0answers
16 views

Get menu as lists with hierarchy

I've a menu like this: Page Category 1 Category 2 Sub category A Sub category B Sub category C Category 3 Page ... Because I need to custom styling it, I need to print it on a template. I need ...
0
votes
0answers
34 views

HowTo preserve page hierarchy with wp_list_pages()?

I have created a dynamic way of displaying "sub-menu-items" using the built-in function wp_list_pages(). However I'm stuck with the hierarchy of the pages displayed because of the sort_column doesn't ...
2
votes
1answer
49 views

Categories' hierarchy in URL

The posts in the website I'm currently working on have multiple hierarchical categories applied to each of them. For instance: Source - Books -- Moby Dick -- Sherlock Holmes The permalinks are set ...
0
votes
1answer
20 views

Hierarchical list of custom taxonomy terms

I have a custom hierarchical taxonomy. I don't know how many nested terms will be in each term. What I want to do, is to list all taxonomy terms hierarchically no matter how deep each term is nested. ...
0
votes
0answers
21 views

How to print search results related categories hierarchical?

I'm trying to print search results related categories hierarchical in sidebar area. I did that but my code prints just terms without their parents. Here is my page. I want to print the terms like ...
0
votes
1answer
83 views

How to check if last uri segment is a custom post type or taxonomy term?

After following Jeffs suggestion on this thread to create nested parent and child taxonomy terms within a permalink like... url.com/custom-post-type/taxonomy-parent/taxonomy-child/cpt-entry It ...
3
votes
3answers
178 views

Custom Post Type as Page parent

So there are a million snippets for how to get pages as parents of custom post types. However, the reverse seems to be questionable. One would think, since everything in WordPress is technically a ...
0
votes
1answer
33 views

Query all post types but limit to parents

I'm building a site with several post types and am using a single index.php to query the archive for each one in turn. One of these post types is hierarchical and I'd like to just query the parent. I ...
0
votes
0answers
71 views

Change custom_post_type permalink to post_type/year/month/post_title

I've create a archive template based on a new post type using this functions: add_action('init', 'demo_register_post_type'); function demo_register_post_type() { register_post_type('archive', ...
0
votes
0answers
79 views

How to display related posts based on specific shared subcategories with current post

Im trying to find a way to display related posts that share specific subcategories with the current post. So for example, lets say the current post has the following subcategories associated with ...
0
votes
1answer
62 views

get all levels parents from id term

I have a term referenced by $id. The term is inside a tree of levels. rootlevel parent (parent=0) first level parent second level parent ... ... last ...
1
vote
2answers
269 views

How to only show posts on last child category

By default WordPress will list posts on each category in its hierarchy. Example: Parent /- child /-- grandchild When viewing the "Parent" category you will see a list of posts from child, ...
0
votes
1answer
226 views

Custom post type / taxonomy rewrite archive page 2 gives 404

I've followed the code based off this and everything is working perfectly -How to create a permalink structure with custom taxonomies and custom post types like ...
0
votes
1answer
236 views

get_pages — parent vs child_of?

I'm working with get_pages on a site that has a very clean and hierarchical structure. As part of a template, I wanted to show child pages as part of the template's 'boilerplate'. Reading the Codex ...
0
votes
1answer
554 views

List child categories from parent category on custom taxonomy page

I making some updates to a theme I'm currently working on. I've moved a bunch of categories that have custom post items under them into a parent category that's all within a custom taxonomy. e.g.: ...
0
votes
0answers
59 views

Add Child custom posts to custom post parent

I have one requirement to show document api, faq, videos under different parents. Example: Software and Hardware Software {software1, software2, software3} Hardware {hardware1, hardware2, ...
0
votes
1answer
77 views

How to include parent terms in hierarchical taxonomy URLs?

For all custom taxonomies, the URLs look like: /base/slug/. I need a solution to for my hierarchical taxonomies to have: /base/parentslug/childslug/. Anybody knows how to redirect and or to have the ...
2
votes
0answers
121 views

How to Combine Two Custom Post Types into Single Permalink Structure

The website uses - A) A hierarcical Custom Post Type "Destination" to support the following structure, so each tier of the hierarchy could have its own unique destination guide: Territory - ...
0
votes
1answer
148 views

Hierarchical Taxonomy Terms Select Menu Output with selected=“selected” Set

I have been trying to wrap my head around a issue for the past 2 days but despite trying all I could, I can't seem to reach the solution. On the backend, I have a hierarchical taxonomy named ...
0
votes
0answers
61 views

When in a archive, display the posts by hierarchical taxonomy term.

All of my posts belong to hierarchical taxonomy (a) but not all belong to taxonomy (b) and (c). How would one go about displaying the list of posts in any archive in a manner of taxonomy (a)'s ...
1
vote
0answers
15 views

'Create New Child Post' from Parent Post using a button - not using Attribute drop-down

I have a custom post type "my_custom_post_type" which contains posts using a grandparent > parent > child hierarchy. I am currently using the 'Attribute' drop down to assign a new post to a parent ...
0
votes
0answers
111 views

Complex menu structure with 6 custom post type hierarchy

We chosen to use Wordpress to this client but we have not work with a menu structure like this one on Wordpress. Those content types i what we have created as custom post type. Is listed below: ...
0
votes
0answers
108 views

Walker_Nav_Menu - creating separate menu for current top level item children

I have had hard time making wordpress custom walker work as I want and I think the problem might be somewhere else. I have a nav tree which looks like this: What I want to do is to have two ...
0
votes
0answers
63 views

How to display proper parent child heirarchy with custom taxonomy in front end

Right now I have a front end form that lists 4 separate taxonomies in checkbox inputs that a user selects. I can list all of the terms one after the other but I can't figure out out to list them with ...
0
votes
0answers
25 views

pad_count with custom taxonomies and attachment post type

I use hierarchical custom taxonomies with attachment post types, and am trying to display a hierarchical terms list with the pad_counts argument set to 1 but children counts are not added to parent's. ...
0
votes
0answers
215 views

taxonomy term names in custom post type permalink structure

I know there has been a lot of times this question has been asked here before, but no matter what method I have tried from here, nothing seems to be working for me. I guess I am sure I am writing in ...
0
votes
1answer
101 views

Delete child post and attachment links to parent post

I have a hierarchical posts, when ever I delete the child posts its attachments go and link to deleted post's parent How can I stop this?
1
vote
0answers
365 views

Create more category hierarchical depth for custom post type/taxonomy plugin (widget)

Source: http://getplatypi.com/docs/ A little new to the plugin development world, but so far I am building a post type plugin to support hierarchical categories in a list form with multiple depth ...
1
vote
1answer
149 views

Create a permalink structure with custom taxonomies and custom post types gives 404

Based on topic How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name My code is // register the new post type ...
1
vote
0answers
126 views

Hierarchial Custom Post Types/Taxonomies

I've been learning Wordpress for the last few weeks and I'm now creating my own theme. I found this question which seems to be exactly what I want to do, but I can't get it working and I suspect its ...
0
votes
0answers
129 views

Add child category to parent on post creation and save

I'm trying to build a tree layout for a custom taxonomy. Categories are animals. Big Game (0) -- Bears (2) -- Black Bear (3) -- Grizzly Bear (2) The above is a glimpse of what I have. ...
1
vote
1answer
279 views

Show hierarchical relationship between to custom post types on admin list

I have two custom post types: "request" and "quote". Both have the "hierarchical" flag set to true. A 'request' cpt can be the parent of one or more 'quotes' cpt. Since these are two different post ...
0
votes
1answer
157 views

Hierarchical Custom Post Types

I would like to have the following taxonomy structure: site.com/courses/course-name/pathway/pathway-name The domain is such that any particular course can be completed by taking a number of ...
0
votes
2answers
348 views

How to query for posts (in hierarchical custom post type) that have children?

I'm trying to figure out how to query for posts in my hierarchical custom post type, presumably using WP_Query that have child posts. I can get all pages that don't have children by setting ...
0
votes
0answers
507 views

Custom Post Type Child Pages

I'm getting a 404 page when viewing child-pages of a custom post type. Right now I have a pages (let's call it 'Books') that displays every 'book', and in the menu have other pages listed under Books ...
0
votes
1answer
39 views

Children categories not shown in dashboard

First of all: it's a strange behavior, but it works. 1) I'm working on a script, so i require the wp-load.php and after that i operate; 2) The scripts creates some categories using wp_insert_term in ...
1
vote
0answers
227 views

Hierarchical permalinks for custom post type and taxonomy

I have registered the custom post type "word" and the custom taxonomy "wordcat". Now what I want is proper hierarchical permalinks. So I've been searching the web for quite some time with no result. ...
0
votes
2answers
983 views

custom post type index page

I have registered a custom post type and I want to create a page where I will list some posts, it will be like an index page. I have created an archive page called mycpt-archive.php and a page called ...
0
votes
1answer
278 views

Taxonomy term breadcrumb; how?

Given a taxonomy term (perhaps in a taxonomy*.php template) how to construct a breadcrumb going up the full ancestry of the term? Is there any shorter way other than a "brute-force" loop to query ...
0
votes
1answer
148 views

Help building array hierarchically with taxonomies (to get posts)

What I need to do is to : -+ Retrieve all terms assigned to a page -+ Get all posts assigned to each term -+ Organize the output in the hierarchic way as in the admin I'm OK with the first two ...
1
vote
1answer
425 views

Determine Term depth

I'm looking to be able to find the depth of a term within it's hierarchical tree. Produce -- Vegetables ---- Carrot ---- Onion ---- Celery -- Fruit ---- Apple ------ HoneyCrisp ----Orange Produce ...
1
vote
2answers
2k views

How to display related posts by subcategory and not parent category

I'm trying to find a way to display related posts that are in a subcategory of a specific parent category based upon the subcategory of the current post. The current post may be assigned to multiple ...