This is very odd indeed. Looking at the debug messages and your content, I can’t imagine why NGFB Open Graph+ would be ignoring those images. Even when they are rejected/too small, there’s a debug message about it. The only thing I can think of, is that those images are added by some javascript afterwards. To make sure, I would need you to add the following to your theme’s functions.php
file:
add_filter( 'ngfb_content', 'my_filter_ngfb_content', 10, 1 );
function my_filter_ngfb_content( $content ) {
$content = '<!-- DEBUG CONTENT: '.htmlentities( $content ).' -->'.$content;
return $content;
}
This will add the full encoded content as hidden text, so I can validate if it contains those image tags or not.
Thanks,
js.
Actually, never mind the above, use this instead. 😉
add_filter( 'ngfb_content', 'my_filter_ngfb_content', 10, 1 );
function my_filter_ngfb_content( $content ) {
global $ngfb;
$ngfb->debug->log( 'DEBUG CONTENT = '.htmlentities( $content ) );
return $content;
}
I just tried your HTML on a test website, and NGFB Open Graph+ picked it up just fine.
Are you sure those images are in your CONTENT, and not added by your theme template(s)?
Alternatively, you could just attach them to the post / page, or include them in the Custom Settings metabox (Pro version).
js.
I believe the images are added through the theme. What will we have to do to get those images picked up?
Theme templates, and the HTML they generate, is not accessible to NGFB Open Graph+ (or plugins in general).
You have a few choices though…
– You can attach an image to the Post / Page (see the FAQ).
– You can upgrade to the Pro version and specify a custom image for each Post / Page.
– Code a filter in your theme’s functions.php
file to provide images to NGFB Open Graph+ (see Other Notes).
js.
Thanks for all your help.
If we purchase the pro edition, is there a way to set it up to automatically set the correct image from the theme, or would we have to manually set it each time?
The Custom Setting metabox is for manual adjustments for each individual Posts and Pages.
As I said earlier, you’d need some custom code in your functions.php file to use theme-specific settings.
js.
Okay, we’ll start by making the changes manually with the pro edition while we work on a permanent fix. I read through the other notes page, but I’m a bit overwhelmed. Which section/function calls will I need to use for this kind of filter?
Your paypal doesn’t seem to be accepting payments at the moment. Is there another way to purchase the pro edition of the software?
The ‘ngfb_content’ filter might be a good choice — you could simply add the HTML for your images, and NGFB Open Graph+ would parse it for the images.
Alternatively, you could create the Open Graph tags directly using the ‘ngfb_og’ or ‘ngfb_og_seed’ filters.
I may look into adding a few more image/video related filters in the next version. 😉
As for Paypal, make sure your credit card isn’t expired. Paypal can be a little flaky — it’s a known issue — so you may want to try again a little later.
Thanks,
js.
I’ll try again in a few hours. Even if we get the filter working, we’ll still purchase the pro edition to thank you for your help.
BTW, if you need some custom coding done, let me know by email. You can send me your theme template, which should be enough to determine where to get images etc., and I can code something for you in 1-2 hours. You can find my rates etc. on surniaulula.com.
js.