Custom post type hierarchical permalinks not behaving as expected for parent/child pages

When you have Pages with children, the permalink structure works something like this: example.com/parent-page/child-page/ All well and good. Trying to go to this URL: example.com/child-page/ doesn’t work, which is good, and as expected – I only want the one URL for my child page. However, I’ve set up a custom post type, and set it … Read more

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 types, WordPress admin has seperate overview lists (e.g. edit.php?post_type=request) for both. What I am looking for is a way … Read more

How to fix a double slash in custom permalinks with hierarchical taxonomy’s?

Following the solution from Jeff @ Custom permalinks – post type – hierarchical taxonomy’s I managed to rewrite my url’s for custom taxonomy’s. However i do have one thing that bothers me and that is a double slash in the output because of the separator. http://www.domain.nl/product/televisies/led/55-inch//product-naam-4/ I can not change this in the permalinks section … Read more

Populating dropdown menu with hierarchical taxonomies

Im currently populating my <select> elements (I’ve got plenty of them) with nested foreach loops, get_terms() and &nbsp;&nbsp;&nbsp;&nbsp; to create padding for each nested child element. Each <select> code is about 50 lines long and is looking very dirty – I always have to take few minutes to understand what’s going on before changing anything. … Read more