Basic CPT Question About Categories

It might just be the late hours, but the register_taxonomy call looks wrong. Shouldn’t the second parameter be the post type you’re registering the taxonomy for? I.e. array(‘pdsh_posts’). And yes, you need to register each of the three taxonomies separately for the post type. See the codex example, https://developer.wordpress.org/reference/functions/register_taxonomy/#comment-397 Edit Actually, its probably not what … Read more

Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?

ok – so this isn’t what I wanted but it does the trick. Adding a function to redirect when the user hits any term but one: function my_page_template_redirect() { if( is_singular( ‘custom-post-type’ ) && !(has_term(‘term’, ‘custom-taxonomy’)) ) { wp_redirect( home_url(), 301 ); exit(); } } add_action( ‘template_redirect’, ‘my_page_template_redirect’ ); Answer based on this one: Disable … Read more