How Discord picks the author name and the url from a WordPress post?
How Discord picks the author name and the url from a WordPress post?
How Discord picks the author name and the url from a WordPress post?
Yoast SEO has a provision for a default social image through Yoast SEO > Social > Facebook > Default image.
I can’t see a Facebook share button on the page you are talking about, but I ran this through Facebook Lint and it appears that your Open Graph meta tags are working correctly.
Short answer: you can’t do that, that’s not what OpenGraph data is, does, or how it works. Long answer: OpenGraph applies to the single post pages only, realistically. When you’re putting a like button (for example) onto each post on a archive page, the like button is going to point to the permalink of the … Read more
From your comments, it seems you want to replace the post preview on facebook. This could be hard, because you try to modify the behavior of another webpage. With the opengraph protocol it can be done. add_action( ‘wp_head’, ‘get_facebook_meta_tags’, 10, 0 ); function get_facebook_meta_tags() { global $post; // bail if the post is not in … Read more
You are probably using this code in your theme’s header.php. When this file is loaded $post is not available yet (it’ll be inside the Loop). So you’d need to declare before anything global $post;. But that’s not the best approach. If you swap themes, what? Do it again? See: Where to put my code: plugin … Read more
Do a search inside: var_dump( $GLOBALS[‘wp_filter’][‘wp_head’] ); Then just do a crossfile search for the attached callbacks.
It is because your markup is invalid which is causing Facebook to think the meta elements are in the body. You can see this by running the page through W3C validator which make sense for the Facebook linter error message: Your page has meta tags in the body instead of the head. This may be … Read more
While you might believe that you have an error in WordPress, the actual problem actually is on facebooks end. When they already have an image, you need to force a rescrape (iirc) via their Open Graph Debugger(?). facebook caches images of various sizes by Url. Meaning that if you already served an image, they already … Read more
Not a direct answer to your question, but possibly a resolution to your problem. Downloading the same image from another source likely resulted in an exact copy (hash-wise) since they probably got it from the same source you did. A wild stab in the dark here, but it’s possible there’s something about the image data … Read more