Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #227276

    Our website uses post sliders to display recent posts from several authors.
    Often authors forget to set a featured image and then the post sliders show a place holder image.
    Before changing to enfold we also already had many posts which didn’t have featured images.

    If we have an existing post with an image in them and then edit it to have a featured image we then get a situation where posts display the same image twice.
    If we don’t have an image in the post and only have a featured image then when we want to share the post with social sites there is no image shared.

    So can we just have the post slider use the first image from the post rather than a featured image ?

    #227292

    Hi gameznet!

    I don’t know of any that can go backwards but there are various functions floating around that will set the featured image to whatever the first image of a post is. The issues is that it only sets it on the post save.

    I’ve not tested this but its an example of what I mean:
    http://bradsknutson.com/blog/automatically-set-featured-image-in-wordpress/

    It doesn’t come without issue however: http://wordpress.stackexchange.com/questions/127196/function-to-auto-set-a-featured-image-that-is-already-in-use

    So it is possible but not something the theme currently has support for. There may even be a plugin out there that will auto scan your old posts and update but I’m not aware of one off hand (or with a bit of cursory searching).

    Regards,
    Devin

    #227301

    Thanks for the quick reply Devin

    We have used a similar plugin which was great at selecting the first image in our posts and setting it as the featured image that could be used in the post sliders. Trouble is that it creates a double up of the images on the post page! I’m sure you understand this just looks stupid.

    If we remove the image from the post it doesn’t show up in RSS feed and shares with social media sites – so not an ideal solution at all.

    With this in mind – is there a way to maybe turn off the feature image from displaying in the post itself? This would mean we can have it as a feature image that can be displayed in the post slider and the same image actually in a post without it displaying twice.

    Any suggestions would be great.

    #227313

    Hi!

    What type of Blog style do you have right now? You can use this on Quick CSS to hide or remove the featured image:

    .single .big-preview.single-big, .single .small-preview {
    display: none;
    }

    Cheers!
    Ismael

    #228357

    Thank you so much Ismael!

    We will use the plugin that will set the first image used in a post as the feature image, the code you gave stops the feature image from displaying in the post so we don’t get a double up while still allowing the feature image to be displayed in all our post sliders.

    Thank you very much for all your time and help.
    Cheers

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Can we use post images in post sliders?’ is closed to new replies.