How to generate programmatically a post which displays a chunk of content from two different posts belonging to two different Custom Post Types?
To display content from two Custom Post Types (CPTs), like “Books” and “Authors,” on a third CPT (e.g., “Quotes”), follow these steps: 1. Create a “Quotes” Post Type In functions.php, register a new CPT: function create_quote_post_type() { register_post_type( ‘quote’, array( ‘labels’ => array( ‘name’ => __( ‘Quotes’ ), ‘singular_name’ => __( ‘Quote’ ) ), ‘public’ … Read more