Tag Info

New answers tagged


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" ...


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>


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 ...


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