• Resolved dustycat

    (@dustycat)


    Could you confirm the logic used to select an image from a post to use for the ‘Image Post’ option in Facebook and that are attached to Twitter tweets?

    I am using custom post types and have two custom fields – main image and additional images (which is a repeating field). These two fields are used to create a Flexslider of images.

    The problem I have is that instead of choosing the Main Image, your plugin appears to be choosing the first item uploaded into the ‘Additional Images’ field.

    As I am using a plugin that enables user content submission via front-end forms. having a featured image for each post isn’t an option.

    My suspicion is that when your plugin doesn’t find a featured image, it is looking for other images in the post and because ‘Additional Image’ is before ‘Main Image’ alphabetically, it is reading this field first.

    Is there something I can do to get your plugin to select my Main Image rather than one of the additional images?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author NextScripts

    (@nextscripts)

    portalreggaepaz

    (@portalreggaepaz)

    Thread Starter dustycat

    (@dustycat)

    Thanks, but I’m still not getting the desired result.

    I have gone into the settings for the plugin and in the section Alternative “Featured Image” location, I have specified the field name of my ‘Main Image’ which is wpcf-main-image (this naming convention comes from the Toolset Types plugin.

    I have double-checked in PHPMyAdmin and can see the URLs of my images in my wpue_postmeta table with a meta key of wpcf-main-image.

    Therefore my understanding is that I have correctly configured your plugin.

    But when the post is sent to Facebook or Twitter (the two social networks I have configured), one of the extra images is being displayed – all of which are stored in a different field and are in the wpue_postmeta table with a meta key of wpcf-extra-images.

    Any suggestions?

    Thanks

    Thread Starter dustycat

    (@dustycat)

    I’ve taken another look at this overnight and removed the setting I had put in your plugin, added it again and then tried adding a new post.

    It all works fine now!

    Thanks

    Thread Starter dustycat

    (@dustycat)

    The plugin has started using the wrong image again even though I have my custom field specified.

    The other thing I have done is add some code to take the wpcf-main-image image and assign it as the featured image

    So either way, your plugin ought to be using the right image, but it isn’t

    Plugin Author NextScripts

    (@nextscripts)

    Please read this https://www.nextscripts.com/snap-features/how-snap-sets-images/

    This article shows at least 4 different ways of posting an image to Facebook depending on your plugin and general website settings. Please find the one that works for you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image Selection’ is closed to new replies.