Rewrite of Custom Post Type doesn’t work with dynamic data
Well… I didn’t know that the expressions in the rewrite attribute of CPT must be registered in advance: add_rewrite_tag(‘%baz%’, ‘([^&/]+)’);
Well… I didn’t know that the expressions in the rewrite attribute of CPT must be registered in advance: add_rewrite_tag(‘%baz%’, ‘([^&/]+)’);
Assuming that all the meta (fields) in both of the Custom Post Types (CTPs) is relatable, this is the way I would go about figuring out how much work is in order: Make a new post in each CTP (both sites) and make sure all the meta fields are filled in. It will help if … Read more
Custom Post Type – Display all, wrap in groups of 3
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
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?
In your loop, you can add $available = get_sub_field(‘available’); if($available == ‘yes’){ //your row rendering code } Switch ‘available’ with whatever you named that field.
filter using custom fields
Adding specific custom fields (images) to post excerpt
Yes, the homepage can show whatever you want it to. First, look through your theme’s files to figure out what file specifically is being used for the homepage. Sometimes it is home.php; other times front-page.php. (If your theme shows a static Page, it can also be other templates – but it doesn’t sound like that’s … Read more
Can I manage current & past editions of an annual event with a single WordPress install?