Cannot change meta box position
Cannot change meta box position
Cannot change meta box position
Filtering custom post types using category taxonomy
There are probably a few ways to handle this, but I’m guessing the fact that you’re using “/partners” in your taxonomy rewrites is messing things up for using “/partners” alone for the CPT. I think I would probably use “/partners” for the CPT only, and then define a custom rewrite rule that determines what the … Read more
With some experimentation got this to successfully redirect the archive page to the bio page: add_filter(‘request’, function( array $query_vars ) { if ( isset( $query_vars[‘author_name’] ) ) { $bio = $query_vars[‘author_name’]; $query_vars = array( ‘pagename’ => “$bio” ); } return $query_vars; } );
The issue can be solved with this code : function my_cpt_query( $query ) { $myPostObjetField= get_field(‘cpt1_field_for_cpt2’,$post_id,false); foreach( $myPostObjetField as $post_field_item_value ) { $ids[] = (int) $post_field_item_value; } $query->set( ‘post_type’, ‘CPT2’); $query->set( ‘post__in’, $ids); } add_action( ‘elementor/query/13600’, ‘my_cpt_query’ );
add_rewrite_rule not working with custom post type
Best practice to display a list/archive of Custom Posts in a Page Template
Reference Link: https://developers.elementor.com/custom-query-filter/#Using_the_Custom_Filter arbitrary_name_query_id – the QUERY ID that you fill in the Elementor field, the code to be placed within functions.php: add_action( ‘elementor/query/arbitrary_name_query_id’, function( $query ) { $meta_query = $query->get( ‘meta_query’ ); $meta_query[] = [ ‘key’ => ‘acf_key’, // put ACF relationship field name ‘value’ => get_the_ID(), ‘compare’ => ‘=’, ]; $query->set( ‘meta_query’, $meta_query … Read more
You need to change your permalink structure from Plain to Post Name. For that, Go to Settings > Permalinks
Redirect drafted post of custom post type to URL?