• 0
Sign in to follow this  
Followers 0

Unrelated thumbnail while sharing post on Facebook

Question

Posted · Report post

Hello, I was looking for a solution to avoid unrelated thumbnail image while sharing post on Facebook. And I found this. So, I would like to know if it's possible to copy this piece of code into the child theme's functions.php file? I've tried some WP plugins which add required meta tags but no success. Any idea?

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Posted · Report post

yes you can try. I'm not sure why they are using `is_singular` as a conditional when the correct conditional tag would be `is_single`

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hello Adam, Could you please tell me where I should paste this code. I've just tried and I got an error... my website was no more accessible. Sorry for this newbie question. Thank you in advance. JPM

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Appearance > Editor > functions.php Thanks, Bryan

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Well, I think actually there is an issue with featured images generated with NextGEN Gallery plugin. I'm trying to solve this...

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Ok, I found the solution: just install this wonderful plugin and that's all!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0