Create 3 Levels of relations with WordPress

I not try this, but I hope this working function get_list_catalog_category_product(){ //get all catalog $catalogs = get_terms( array( ‘taxonomy’ => ‘catalogs_term’, ‘hide_empty’ => false )); if ( !empty($catalogs) ) : //make list catalog $output=”<ul>”; foreach( $catalogs as $catalog ) { //write all catalog $output.= ‘<li><a href=”‘.get_term_link( $catalog ).'”>’.$catalog->name.'</a>’; //find all product related the catalog $args … Read more

Enable Authors in Multiple Custom Post Types

I would build a loop to pass all my cpt’s into like so function add_cpt_author_support( ) { $post_types = array(‘detox’, ‘recipes’, ‘movements’, ‘lifestyle’); foreach ($post_types as $type) { add_post_type_support($type, ‘author’); } } add_action( ‘init’, ‘add_cpt_author_support’ ); One other thought though, why aren’t you just declaring support for authors when you register your custom post types?