Custom post type and category link together

Hopefully this is what you were asking for? Make sure you update your permalinks (just click update) afterwards. This will do yourwebsite.com/vege/%vege-category%/%post% In your example, you didn’t register the taxonomy type, and additionally you need to add the function to put the category slug into the permalink. function my_custom_post_vege() { $labelsvege = array( ‘name’ => … Read more

What code should I use to display children of a custom post?

wp_list_pages calls get_pages internally and pass the argument list to get_pages so you can pass arguments whatever get_pages accept. To display child posts on your single-{post_type}.php you need to call wp_list_pages with post_type parameter. wp_list_pages will ignore post_type but it will pass this to get_pages. Example:- echo ‘<ul>’; wp_list_pages(array( ‘post_type’ => ‘show’, ‘child_of’ => get_the_ID(), … Read more