Tag Info

New answers tagged

0

After here and there for long i find the solution for above : Replaced above meta tag with below <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <?php if($image[0] != "" ){ ?> <meta property="og:image" ...


0

What about using the u var to share your url and let facebook get the content using Opengraph tags? Something like this <a onClick="window.open('http://www.facebook.com/sharer.php?u=<?php echo $url; ?>', 'sharer', 'toolbar=0,status=0,width=548,height=325');" target="_parent" href="javascript: void(0)">Custom Share on Facebook page!</a>


2

It appears that your site doesn't use the core WordPress Featured Image feature but instead uses a custom image field (probably from Advanced Custom Fields). Yoast's plugin, Jetpack, and presumably many others look for the Featured Image image when setting the opengraph meta tag. So you have two options: Use the core Featured Image feature with one of the ...


-1

For automatic posting to your facebook page, hopefully first you're using a page as opposed to a personal profile. Pages are publicly viewable. You'll probably also need to create an app for facebook as well. This plugin works for pages. https://wordpress.org/plugins/facebook-auto-publish/screenshots/



Top 50 recent answers are included