Questions tagged [hierarchical]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

How to have a hierarchy of custom post types and use two of them in the permalink?

General Setup I'm working on a setup to create a documentary/wiki site for a company. The site should have three different levels of hierarchy and one type of content at the lower end: level 1: area (...
Stephan's user avatar
0 votes
1 answer
39 views

List all posts in hierarchy and groupped by each taxonomy

i need some helps to list all my posts from my custom post type in hierarchy structure (like wp_list_pages) and groupped by each Taxonomy. i've tried to use wp_list_pages() but i don't know how to ...
Dewa Alit's user avatar
0 votes
0 answers
17 views

How to develop Knowledge center in WordPress Website

I need to develop Knowledge Center Concept in my Website, where I can Publish Blog Posts, Case Studies, Customer Success Stories, Info-graphics & Whitepapers etc. How can i develop such concept in ...
Bhargav Joshi's user avatar
0 votes
1 answer
1k views

Is possible hide hierarchical select dropdown created by jetsmartfilters? (only visual issue)

Is possible to hide child ("City") hierarchical select fields before parent ("State") choice? only visual issue. I did hide function in "JavaScript" but I couldn't join ...
adriano tanaka's user avatar
0 votes
1 answer
22 views

Edit the_category (); for a hierarchical display

For my wp theme I want to use the categories as tags on my posts. Example: The problem is that the category in red must always be the parent and in gold the child. Except that returns the categories ...
Maximus's user avatar
1 vote
1 answer
42 views

Product subcat with duplicate name of a subcat of another cat gets the category name in the slug

Suppose the following categories tree in Woo: Men (slug men) -- Shoes (slug shoes / was created first) Women -- Shoes (slug shoes-women / was created second) Why is this happening? Both subcats ...
Faye D.'s user avatar
  • 127
0 votes
3 answers
140 views

Show subChild categories

Targets : Show Locations (sub-districts & cities) on the customized shop page & on tab additional information - Show on line 5 I'm building a property site using wordpress and woocommerce. In ...
carlozsan's user avatar
0 votes
1 answer
85 views

Setting Custom Post Type Parents/Hierarchies

I am looking to associate an Application post type as a child of a Job post type, where users can submit an Application that is tied to the Job it was submitted for. The end goal is to allow the ...
Arx's user avatar
  • 1
1 vote
0 answers
144 views

how to get the categories for a single product in a hierarchical way

It's the first time I write here, but I really appreciate your work from long time. Well, I know there is a very similar question, but I can't get out the solution for my particular case. In a ...
Andrea's user avatar
  • 11
1 vote
0 answers
316 views

dividing sub-categories by parent category - WordPress

I am aware this question is very similar to previous questions however none of the provided answers seem to work for me. but my question is, how do I divide sub-categories by parent category? For ...
Dean's user avatar
  • 23
1 vote
1 answer
238 views

Redirect all child taxonomy to its parent

Is it possible to automatically redirect a child taxonomy to its parent, therefore not having a public page at all for the child taxonomy? Example: I have a taxonomy called venue, this is set up with '...
robwatson_dev's user avatar
0 votes
1 answer
189 views

Custom taxonomy terms hierarchical navigation

I'm building a product catalog site and I created a product custom post type and a related product_type taxonomy. I added some products and created the following product_type terms: Books Classics ...
leemon's user avatar
  • 1,806
0 votes
1 answer
27 views

Having hierarchies inside Wordpress custom post type

I am trying to create a custom post type called DondeAmigo that accepts hierarchical pages. Example: I create a page called 'lewis', whose URL becomes: /donde-amigo/lewis. Then, I create a page called ...
Luis Galdo's user avatar
0 votes
1 answer
66 views

Custom Taxonomy - Modify Function to Get Child Category

I am using these two functions which result in getting the top parent category of a custom taxonomy. These have been tested and work as expected. However, now I am looking for a way to output the ...
JoaMika's user avatar
  • 668
0 votes
1 answer
2k views

WordPress list categories dropdown with parent-child relation and child under it's parent

I am attempting to display a category dropdown (select) with parent categories and child categories tagged under the child category. Example: parent A parent B parent C - child of C - child of C - ...
xyz83242's user avatar
  • 117
1 vote
1 answer
233 views

How to get the parent of a non-hierarchical custom post type being edited in Gutenberg

It's a common practice to use the post_parent property in the WP_Post class to create 1-to-n relationships between different custom post types. In an plugin I'm developing, I added a SelectControl to ...
leemon's user avatar
  • 1,806
1 vote
0 answers
27 views

How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?

I am working on a test. Where i want the follow to be able to work: https://1587469162.webton.dev/referenties/ = page https://1587469162.webton.dev/referenties/hoofdcategorie/ = main taxonomy https://...
Dennis de Groot's user avatar
0 votes
0 answers
43 views

How to convert hierarchical Pages to hierarchical Custom Post Types? Slugs get a number as if they were duplicates

I have an existing WP installation with 300 Pages, hierarchically structured. Editors intend to create around 2000 of them. Over time it becomes hard to find a particular page with the wordpress ...
yoho's user avatar
  • 45
0 votes
2 answers
38 views

custom post type don’t appear in the home page

I would like to have different types of posts on my blog, e.g.: articles, film descriptions, book descriptions, links with short descriptions, quotations, historical events, characters, artwork, ...
reti's user avatar
  • 27
3 votes
1 answer
515 views

Archive page showing nothing - issue with WordPress Hierarchy?

I'm building a theme and I've found it all pretty simple and straightforward. However, I can't figure out why I have a totally blank page for my archive WordPress blog posts? I understand the ...
Henry's user avatar
  • 983
0 votes
0 answers
35 views

Parent Category and Subcategory default text generated with category

I need help on something I am unable to do on my website. I have several category and sub category on my page. For E.g Food -Apple -Orange Shirt Laptop -HP -Dell I would like on each category page ...
Sicario's user avatar
0 votes
2 answers
225 views

Order custom taxonomy hierarchy

I have some custom taxonomy for regions. Commonly it would look something like this. USA (parent) - Arizona (child 1) - - Phoenix (child 2) however, there will be cases where it will only be like ...
Ronald Langeveld's user avatar
0 votes
1 answer
2k views

tax_query: Don’t show posts with parent term when they have a corresponding child term applied

I have a hierarchical taxonomy download-category from which I only want the posts with a parent term to show up: $downloads_parent_posts = get_posts( array( 'post_type' => 'downloads', ...
user1706680's user avatar
4 votes
4 answers
4k views

Disable block from editor based on post type

I've made a Gutenberg block which is only appropriate to show on hierarchical post types, so I want to disable it from the block inserter for non-hierarchical post types. I thought about how to ...
Sean's user avatar
  • 647
0 votes
0 answers
82 views

SQL. Select category descendants

How does Wordpress fetches subcategories for a given category? I tried to figure it out from the code, but I have not succeeded. My real question is: is it possible to make some recursive sql query ...
Shimon S's user avatar
  • 887
0 votes
1 answer
512 views

wp_list_pages get the hole hierarchy for current page

Having for example the following page hierarchy Page1 - SubPage1_1 - SubPage1_2 -- SubSubPage1_2_1 Page2 - SubPage2_1 - SubPage2_2 -- SubSubPage2_2_1 and requesting for example ...
fefe's user avatar
  • 844
1 vote
0 answers
62 views

How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets

Background My site is about DIY and 'making' around the house (let's say). Current version 5.1.1 I use posts for the content on my site which isn't strictly in "blog" (chronological) format ...
seventyeightist's user avatar
1 vote
0 answers
30 views

How to set a CPT to have a page as a parent, then rewrite urls accordingly?

i have a CPT (called review) for review pages and I want to set these as children of pages i've created. right now my CPT slug looks like this: example.com/review/chewy-review but i have a page on ...
Tintinabulator Zea's user avatar
1 vote
1 answer
1k views

post_row_actions not working for hierarchical post type

I'm working on a plugin where I have a Custom Post Type (CPT) registered and I need to add custom row actions to that particular post type. But could not make the following code hooked to ...
Mayeenul Islam's user avatar
0 votes
0 answers
689 views

Custom Post Type parent/child relationship rewrite rules for permalinks

I have been working on this for quite awhile but I'm stuck at rewriting the permalinks for both the parent and the child. So I created two custom post types: magazines and magazine-pages both MUST be ...
TomHoevenaars's user avatar
0 votes
1 answer
110 views

Attempting to get number of grandchildren of page in WP_Query loop

I have a custom archive page(with map and location data) for a custom post type. Due to how the locations are hierarchal(state, city, location), I want to show the states only on the archive page, ...
Benlov's user avatar
  • 21
1 vote
1 answer
73 views

How do I display a list of posts under all hierarchical children of the current taxonomy?

Assume the following custom taxonomy structure: USA California Los Angeles San Francisco Oakland New York New York Buffalo Rochester Note: It's just sample data, so don't bother to correct it! ...
aalaap's user avatar
  • 744
0 votes
0 answers
188 views

Custom post types & Pages hierarchy - Error 404

I've defined two custom post types: Theme Fiche I've also 7 pages using a defined rubrique template: (template-rubrique.php) Both my Theme and Fiche have an ACF post-object field. The Theme ACF ...
Quentin Veron's user avatar
0 votes
1 answer
396 views

Display a specific hierarchical level of a specific custom taxonomy

How do I adapt the following snippet to apply to a specific custom taxonomy? It current applies to post categories I use the function below with this: <?php display_cat_level(X,true); ?> in my ...
Pete's user avatar
  • 998
0 votes
1 answer
267 views

custom hierarchical taxonomy and custom post type list contains surplus posts

I wish to list custom taxonomy terms as titles and custom posts as lists under titles: Basics List item1 List item2 Movies List item3 Images List item4 However, custom taxonomy is HIERARCHICAL ...
piotao's user avatar
  • 103
0 votes
1 answer
392 views

How to show term-specific post list, without posts associated with child terms?

Is this normal WordPress behaviour? I have: Custom post type: "article" Custom taxonomy: "company" (hierarchical) In the backend, when I go to the post list for "Articles", and constrain results by ...
Robert Andrews's user avatar
0 votes
2 answers
1k views

Creating a non-hierarchical Taxonomy that behaves like categories

I've created a custom post-type along with a custom taxonomy and everything is fine, apart from one particular thing. First off, my use case: I need it to act like a category system, however not be ...
Brett's user avatar
  • 414
2 votes
1 answer
1k views

Hierarchical or Non-hierarchical Custom Post Type in Real World Example

Well the simplest answer is a Non-hierarchical Custom Post Type is like regular posts and a Hierarchical Post Type is like a page but this still confusing for me. I can understand easily the ...
Mona Coder's user avatar
0 votes
2 answers
657 views

Custom Post type & Taxonomy 404

I've created a custom post type & taxonomy, however when I go to my taxonomy page it throws a 404 error and I can't understand why. // Register Custom Post Type function portfolio_post_type() { ...
SamXronn's user avatar
  • 195
3 votes
0 answers
1k views

Add Product categories to Wordpress menu without losing hierarchy

I need to add product categories to Wordpress menu, but when I'm doing this with WP interface it lose the hierarchy I tried with WP-CLI, but there is no method to specify wich item is the child. ...
user3249443's user avatar
0 votes
1 answer
98 views

outputting taxonomy hierarchy

I have a site where I've listed a list of subcategories for a side navigation. I need to break those subcategories into a more specific hierarchy. It's currently outputting a list from a parent ...
Richard Thomas's user avatar
0 votes
0 answers
126 views

How to publish pages under a subdomain url?

I have created a subdomain as: blog.example.com How to put publish my pages as blog.example.com/page1 blog.example.com/page2
HOY's user avatar
  • 291
0 votes
0 answers
287 views

hierarchical Custom post type child permalink not found

I currently have a custom post type that is set up to be hierarchical. $labels2 = array( 'name' => __( 'Services' ), 'singular_name' => __( 'Service' ), '...
jppower175's user avatar
0 votes
1 answer
198 views

How do I quickly hide a hierarchy of pages from search engines and external users?

I use Multisite to manage the various languages of a web site. The original language site has a huge page hierarchy (navigation items with plenty of sub-pages and sub-sub-pages), à la I've cloned ...
Pekka's user avatar
  • 542
1 vote
0 answers
238 views

Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types

I have been pulling my hair out trying to figure out how to get this to work. The site I am working on has two post types created using the Toolset plugin. One for Regions and one for Locations. Both ...
briha's user avatar
  • 11
0 votes
1 answer
1k views

Create a Hierarchical List of Custom Taxonomies AND Posts

I'd like to create a 3-tier hierarchical list of terms within a custom taxonomy, which includes up to 10 posts within each of the bottom-level term(s) only. e.g. Custom Taxonomy - Parent Term 1 -- ...
jimmyahughes's user avatar
0 votes
1 answer
22 views

Can I assign a Folder for Post Formats, without it affecting WordPress' fallback/hierarchical system?

I have created a few Post Format Templates Files. format-aside and format-audio etc. At present, I am using <?php get_template_part (‘format’,get_post_format()) ;?> to call such Templates. In ...
Craig's user avatar
  • 358
3 votes
2 answers
51 views

Does the 'WordPress Order' feature, within the WordPress Dashboard, have any impact on site architecture?

As you can see, within the image below, WordPress offers us to numerically arrange our Pages via a feature entitled 'Order'. I have been using this as a means to help organise my Pages, for my own ...
Craig's user avatar
  • 358
2 votes
1 answer
17k views

Permalinks for WooCommerce Categories and Subcategories

Setup Desired permalink structure (only these structures exist for products) Product 1: /shop/category/subcategory/product1/ Product 2: /shop/category/product2/ Woocommerce Product View Settings ...
Anton Flärd's user avatar
0 votes
1 answer
550 views

How to query for posts (hierarchical custom post type) that have children but are NOT top level?

I'm trying to create a custom filter for a custom post type that will display only posts that have children – post_parent__not_in => 0 won't work because these posts have parents. I'm trying to ...
Jusi's user avatar
  • 127

1
2 3 4 5 6