WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Facebook Open Graph protocol] Can't use NextGEN images…

[Plugin: WP Facebook Open Graph protocol] Can't use NextGEN images…

  • JS Morisset
    Participant

    @jsmoriss

    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?

    Thanks,
    js.

    http://wordpress.org/extend/plugins/wp-facebook-open-graph-protocol/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    JS Morisset
    Participant

    @jsmoriss

    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.

    js.

    Plugin Author Chuck Reynolds
    Participant

    @ryno267

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Facebook Open Graph protocol] Can't use NextGEN images…’ is closed to new replies.