how to create custom taxonomy drop downs for parents and child

<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?> <tr class=”form-field term-parent-wrap”> <th scope=”row”><label for=”parent”><?php _ex( ‘Parent’, ‘term parent’ ); ?></label></th> <td> <?php $dropdown_args = array( ‘hide_empty’ => 0, ‘hide_if_empty’ => false, ‘taxonomy’ => $taxonomy, ‘name’ => ‘parent’, ‘orderby’ => ‘name’, ‘selected’ => $tag->parent, ‘exclude_tree’ => $tag->term_id, ‘hierarchical’ => true, ‘show_option_none’ => __( ‘None’ ), ); /** … Read more

Show specific posts with WP_Query using ACF Post object

now we are getting there.. you really need to try to explain, what your problem is, its not very clear in your question. my assumption is, you tried this one, but it didn’t work out: foreach( $post_objects as $post_object): get_template_part( ‘includes/content’, get_post_format( $post_object->ID ) ); endforeach; and here is why: you call the template, but … Read more

Having issue on Loading Meta Data From CSV to CPT

Your metas need to be passed to wp_insert_post() as an array like so: // Insert the post into the database $post[“id”] = wp_insert_post( array( “post_title” => $post[“title”], “post_type” => $cpt[“custom-post-type”], “meta_input” => array( “custom-field-1” =>$cpt[“custom-field-1”], “custom-field-2” =>$cpt[“custom-field-2”], ) “post_status” => “publish” )); https://developer.wordpress.org/reference/functions/wp_insert_post/#parameters

Showing a different logo for a custom post type

You’re missing the <?php tag before the closing bracket, so it’s not being processed. Your code updated below: <?php if ( is_singular(‘customer’) ) { ?> <img src=”https://wordpress.stackexchange.com/questions/312935/<?php bloginfo(“template_directory’); ?>/dist/images/logo-customer.png” alt=”Logo Customer”> <?php } else { ?> <img src=”https://wordpress.stackexchange.com/questions/312935/<?php bloginfo(“template_directory’); ?>/dist/images/logo.png” alt=”Logo”> <?php } ?>