Display custom post type for specific user

try this: $args = array( ‘author’ => get_current_user_id(), ‘post_type’ => ‘YOUR_CUSTOMPOST_TYPE’, ); $author_posts = new WP_Query( $args ); if ($author_posts->have_posts()): while ($author_posts->have_posts()) : $author_posts->the_post(); //DISPLAY CONTENTS HERE endwhile; endif; wp_reset_postdata(); wp_reset_query(); replace YOUR_CUSTOMPOST_TYPE with your post type, what it does is finds posts of certain post type whose author is currently logged in user. Currently … Read more

How do I replace the post title with a custom field?

The acf/update_value filter won’t work as it’s meant for modifying the acf value and not the post it’s associated with. Try using the acf/save_post action instead. Here’s a simplified example of how I’d normally set the post title from first and last name fields in acf. add_action( ‘acf/save_post’, ‘biwp_set_title_from_first_last_name’, 20 ); function biwp_set_title_from_first_last_name( $post_id ) … Read more

Migrating Hierarchal Taxonomy Categories Between Post Types

So that at least there’s a solution here, will add that this plugin seems to succesfully migrate Posts as well as category and hierarchy.: https://wordpress.org/plugins/post-type-convertr. On the production server, I also needed to run the following SQL query after migrating with the Post Type Convertr plugin: UPDATE wp_term_taxonomy SET taxonomy=’project-category’ WHERE taxonomy=’product_cat’; I dunno. Sorry … Read more