hellodollys
Forum Replies Created
-
Forum: Plugins
In reply to: [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] og:image post parentIs there any code for me to add images without going through the default featured image? I am having problem with image size with the above code. If I leave the code as below full size it will take the image size of the default featured image.
add_filter( 'rank_math/opengraph/image_sizes', function( $sizes ) { if ( is_singular( 'list' ) ) { $sizes = [ 'full' ]; return $sizes; } else { return $sizes; } });Forum: Plugins
In reply to: [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] og:image post parentHello, I have currently selected the default featured image for all pages that do not have featured images. I then used this code instead. Do you have any other solutions?
add_filter( "rank_math/opengraph/facebook/image", function( $attachment_url ) { global $post; $img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->post_parent ), 'thumbnail' ); $img = $img[0]; if ( is_singular( 'list' ) ) { $attachment_url = $img; } return $attachment_url; }); add_filter( "rank_math/opengraph/twitter/image", function( $attachment_url ) { global $post; $img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->post_parent ), 'thumbnail' ); $img = $img[0]; if ( is_singular( 'list' ) ) { $attachment_url = $img; } return $attachment_url; }); add_filter( 'rank_math/opengraph/image_sizes', function( $sizes ) { if ( is_singular( 'list' ) ) { $sizes = [ 'thumbnail' ]; return $sizes; } else { return $sizes; } });I want to ask one more question, Is there any way to turn all previous articles into videos? As the image shows below, manual replacement is time consuming because of too many posts.
- This reply was modified 6 years, 6 months ago by hellodollys.
Forum: Plugins
In reply to: [Autoptimize] Optimize HTML Code? Error loadmore ajaxI just use: Autoptimize and Classic Editor
Forum: Plugins
In reply to: [Autoptimize] Optimize HTML Code? Error loadmore ajaxI am testing it on xampp. But I found the cause.
If I add title=”” then everything works fine.<div class="poster"> <a href="http://domain.com" title="demo"> <img src="http://domain.com/a.jpg"> </a> </div>Do you have any other solutions to this problem?
- This reply was modified 6 years, 6 months ago by hellodollys.
- This reply was modified 6 years, 6 months ago by hellodollys.
Forum: Plugins
In reply to: [Autoptimize] Optimize HTML Code? Error loadmore ajaxThanks for the quick response.
I am using this theme.
http://demo.keremiya.com/en/v5/