Jump to content


Photo
- - - - -

Unrelated thumbnail while sharing post on Facebook


  • Please log in to reply
5 replies to this topic

#1 Jean-Philippe

Jean-Philippe

    Super Member

  • Members

  • 116 posts
  • LocationTokyo
  • Country: Country Flag

Posted 02 March 2011 - 02:49 PM

Hello,

I was looking for a solution to avoid unrelated thumbnail image while sharing post on Facebook. And I found

Please Login or Register to see this Hidden Content

.

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?

#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts
  • Country: Country Flag

Posted 02 March 2011 - 08:22 PM

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`

#3 Jean-Philippe

Jean-Philippe

    Super Member

  • Members

  • 116 posts
  • LocationTokyo
  • Country: Country Flag

Posted 03 March 2011 - 04:21 AM

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

#4 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 03 March 2011 - 07:28 AM

Appearance > Editor > functions.php

Thanks, Bryan

#5 Jean-Philippe

Jean-Philippe

    Super Member

  • Members

  • 116 posts
  • LocationTokyo
  • Country: Country Flag

Posted 03 March 2011 - 12:50 PM

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

#6 Jean-Philippe

Jean-Philippe

    Super Member

  • Members

  • 116 posts
  • LocationTokyo
  • Country: Country Flag

Posted 03 March 2011 - 02:28 PM

Ok, I found the solution: just install this

Please Login or Register to see this Hidden Content

and that's all!