function insert_fb_in_head() {
global $post;
...
if(!has_post_thumbnail( $post->ID )) {
$default_image="/wp-content/themes/smmp2014/images/smmp-icon.png";
//replace this with a default image on your server or an image in your media library
echo '<meta property="og:image" content="' . $default_image . '"/>';
}else{
$thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id(
$post->ID ), 'medium' );
echo '<meta property="og:image" content="' . esc_attr( $thumbnail_src[0]
) . '"/>';
}
echo "\n";
}
add_action( 'wp_head', 'insert_fb_in_head' );
That doesn’t work anymore with BJ Lazy Load.
Any suggestion would be highly appreciated.
https://www.ads-software.com/plugins/bj-lazy-load/
]]>i was trying to use the media rss feed of wordpress to provide updates on my facebook page.
for that i was using RSS Graffiti.
But i am getting the following problem :
“Missing publication date in 10 items in your feed” MORE INFO
Also, the publication date is not being shown in the RSS Feed or the emails being sent by feedburner.
plz help!!
if there is no way to solve the media RSS, plz suggest a better RSS to Facebook application . I tried Social RSS but it only shows one image per update on facebook.
–
vicky
https://www.ads-software.com/extend/plugins/nextgen-gallery/
]]>I’m using RSS Graffiti app from Facebook to display my site articles but articles are displayed without article image!
I would like to show the article image for every post!
Could you help me on this?
Thanks,
]]>www.ehairexperts.com/rss
www.ehairexperts.com/feed
Is there a way that I can get both pages to be synchronized? I just don’t understand why my /feed/rss/ page does not match my /feed/ page.
My feed urls are as follows:
www.ehairexperts.com/feed
www.ehairexperts.com/feed/rss
Please help!!!!
]]>