Adding Post Title from custom post type to another custom post type

Yes, you can do that, Please try below code. add in your functions.php please change post_types according your post type slugs from below code. add_action( ‘save_post’, ‘post_entertainment_save’ ) ; function post_entertainment_save( $post_id ) { $post_type = get_post_type($post_id); $post_title = get_the_title( $post_id ); $post_thumbnail_id = get_post_thumbnail_id($post_id); $imageSRC = wp_get_attachment_image_src($post_thumbnail_id, ‘thumbnail’); $post_content = get_post_field(‘post_content’, $post_id); // If … Read more

Combine multiple separate lists into one

You can use a multidimensional array to get this format. Please see the example given below: $terms = get_terms( array( ‘taxonomy’ => “issueCompanion”, ‘hide_empty’ => false, ‘fields’=>’all’ ) ) $multi_arr = array(); foreach($terms as $term){ $year = get_field(‘published_year’, $term->term_id); $multi_arr[$year][] = $term->name; } When you print this $multi_arr you will get the format you want. … Read more

edit.php all post not working

finally found the solution when i enter all the custom post status to public it declare the post_type to default post as global so applied filter to change the global post_type based what type request get in URL function publishPress_allPost_pre_get_posts( &$wp_query ) { if ( is_admin() && array_key_exists( ‘post_type’, $_GET ) ) { $wp_query->set( ‘post_type’, … Read more