Category / Custom Post Type permalink issue

A few issues- there is no %book_type% rewrite tag, your rewrite tags are %book% and %chapter%. Change all instances of %book_type% to %book%. Your taxonomy slug should just be ‘rewrite’ => array( ‘slug’ => ‘books’), the rewrite tag shouldn’t be in there. Last (minor) issue- In your post_type_link filter, you should wrap the fetching of … Read more

Custom taxonomy archive not showing posts of certain child taxonomies

What you are calling “filter” is just a HTML select element. You need the put the select element in a form and filter the posts based on the selected option of this select element. For example, for the frontend: The form: <form method=”post” action=”<?php echo get_post_type_archive_link(‘rlt_rule’);?>”> <?php $filter_taxonomy = ‘rlt_rule_headline’; wp_dropdown_categories( array( ‘show_option_all’ => ‘Show … Read more