New answers tagged

2

You need to use Open Graph meta markup to have this type of sharing on Facebook .There are so many plugins available in the WordPress repository for this. For example: <meta property="og:url" content="http://sharing/url" /> <meta property="og:type" content="article" /> <meta property="og:title" content="Title of the post" /> <meta ...


1

With this code in header.php and some tweaks I fix it and I disable social yoast and activating another plugin open graph which let me choose what tags I want. <?php global $post; $src = wp_get_attachment_image_src( get_post_thumbnail_id( $post -> ID ) , 'thumbnail' ); if(strlen($src[0])){ echo '<meta ...


0

The way around this is pretty simple, however. You can just install a plugin that automatically sets the featured image from the first image in a post. Of course that means you will need to make the animated image the first image, but at least it’s a workaround. There are a number of plugins that will let you automatically set your first image as the ...


0

If you need to control the image that is used when shared to facebook, might I suggest doing the following within Yoast SEO: Once the plugin is installed, you will have a Yoast SEO settings panel below your post and page editor. On this panel there is a social tab. Within this tab you are given the ability to edit the image used when users share via ...


1

It's because those GIF images exceeds the max-size supported by Facebook open graph ( 8Mb ). Check the debugger for Open Graph here For instance for post vbnvnvb , debugger show this error


1

Wordpress errors are application level errors. PHP errors are language syntax or usage errors and appach error are errors detected during the web server operation. Errors, especially minor ones, might be reported "upwards" and look like they are wordpress application errors, or logged downwards and be part of the apache server error log if the applications ...


1

You can use media_sideload_image() which will take a link to a file and upload it to the media library. You do need to pass it some kind of $post_id @Sumit points out in the comments you could pass NULL into the $post_id field. media_sideload_image( $file_url, $post_id, $image_desc, $return ); If you need the uploaded image ID, take a look ...



Top 50 recent answers are included