Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Different Post Image than whats shown in the Header of a Post

  • This topic has 3 replies, 3 voices, and was last updated 3 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11181
    Avatar photo[anonymous]

    Is there a way to display another Post Image than what is used inside the post itself?
    So a Preview Image that will be used on the main page that is separate from “Featured Image”.
    Right now I would hide the featured inside the post page and just add it again as a media inside the post and use my desired preview image as the featured image, but this feels wrong.
    So would be nice to have a “featured image” and a “header image” where the feature image is what is shown on e.g the main page and the header image is what is shown inside the post.

    #11182
    Avatar photo[anonymous]

    Custom Fields:

    You can use custom fields or post meta to add an additional image URL for the main page preview. Many themes and plugins support custom fields, and you can display the custom field value in the template where you want to show the main page preview.
    Custom Post Types:

    Create a custom post type specifically for the main page preview, and associate it with the actual post. You can then use a custom template or code to display the custom post type’s featured image on the main page.

     

     

    #11184
    Avatar photo[anonymous]

    I wrote a short guide about adding a custom field, not sure how helpful it is.

    The only issue is that it would be a text field. So you would have to upload the image, perhaps using the File Manager, and then add the URL into the text field, and then call it in your main page template between img tags. It wouldn’t be as easy as uploading a Featured Image through the post.

    #11261
    Avatar photo[anonymous]
    privii wrote:

    I wrote a short guide about adding a custom field, not sure how helpful it is.

    The only issue is that it would be a text field. So you would have to upload the image, perhaps using the File Manager, and then add the URL into the text field, and then call it in your main page template between img tags. It wouldn’t be as easy as uploading a Featured Image through the post.

    so instead of “type: text” there isnt a “type:image/media” or so?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.