Add attribute to featured image with filter (wp_get_attachment_image_attributes)
Add attribute to featured image with filter (wp_get_attachment_image_attributes)
Add attribute to featured image with filter (wp_get_attachment_image_attributes)
Filtering custom post types using category taxonomy
Need help with wordpress audio preload
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; } );
Custom WP LIST Table filter
WordPress offers their own implementation called RawHTML. This works: const htmlToElem = ( html ) => wp.element.RawHTML( { children: html } ); … edit: function(props) { return htmlToElem(“<strong>strong text</strong>”); }, …
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’ );
Load wp_editor on button click
Stop pagination when static homepage is set