go41

the info you need to know


von Joern
Keine Kommentare

It took me a while to find the code to query the sub-pages (children) of the current custom post type.Just found a solution, let me share it.The custom post type I use is set to 'hierarchical' => true, enabling a hierachical order with sub-pages.The permalink structure came out like this:my-site/custom-post-type-name/custom-post-parent/custom-post-child/sample…