The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP Facebook Open Graph protocol
Can't use NextGEN images... (4 posts)

  1. JS Morisset
    Posted 4 years ago #

    I was trying to get your plugin to work with featured images from a NextGEN gallery... You have to use "get_the_post_thumbnail($post->ID, "post-thumbnail");" but it still wasn't working for me... Then I found the following info:

    "If the required add_theme_support( 'post-thumbnails' ); in the current theme's functions.php file is attached to a hook, it must be must be called before the init hook is fired. The init hook may be too late for some features. If attached to a hook, it must be after_setup_theme."

    I'm a perl guy, trying to do my best in php... Is there anything I can change in my theme's function.php file to make get_the_post_thumbnail work in your plugin?



  2. Kris Nelson
    Posted 4 years ago #

    I don't know if it's related, but I think I'm fighting the same battle here.

    I'm writing a plugin which supports a shortcode to render an image. When I use the FB debugger while running this plugin, that rendered image from my shortcode isn't displayed.

    When looking at this FB plugin briefly, I see that it's using $post->post_content to scan for image tables, but while I'm troubleshooting, I'm seeing that post_content for my page is showing up with the shortcode and not the content rendered after the shortcode.

    I realize your post is about featured images and post thumbnails, but I'm curious to know if the same fix for both yours and my issue might be similar.

    I'll keep poking around and if I come across anything useful, I'll share it here.

  3. JS Morisset
    Posted 4 years ago #

    I ended up coding my own plugin called NextGEN Facebook - you might want to have a look.

    The reason your shortcode isn't being handled is probably because apply_filters('the_content', $post->post_content); needs to be run first.


  4. Chuck Reynolds
    Plugin Author

    Posted 3 years ago #

    yeah we're rewriting a lot in the next major release that'll address the buffering issues and all that. thx

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Facebook Open Graph protocol
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.