Create Cross Promoting Categories in WordPress Using ‘pre_get_posts’

I think I remember seeing this attempt somewhere… If I remember correctly, the solution was to use a custom tax query on the category.php template, but querying the taxonomy (crosspostcategory) FIRST in the “or” statement… So you’d check for the taxonomy first, and then query (tax query) the category taxonomy next in the OR statement. … Read more

Issue on Adding Taxonomy to Custom Post Type Using Function

This is what I use to build new custom Taxonomy to my custom post types. And it works for me. function fun_book() { // Add new “Fun” taxonomy to Book Post Type register_taxonomy(‘fun’, ‘book’, array( // Hierarchical taxonomy (like categories) ‘hierarchical’ => true, // This array of options controls the labels displayed in the WordPress … Read more