[Resolved] WP Show Posts to include images

Home Forums Support [Resolved] WP Show Posts to include images

Home Forums Support WP Show Posts to include images

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #258571
    Steig

    Hi Tom,

    I’m using the base WP Show Posts to produce a listing of posts at a glance. https://arlinstitute.org/news-home

    Some of those posts have images on them, when you view the actual post itself. I’d like scaled down versions of those images to show on the summary page.

    I’ve check the box for images and set the width & height, but nothing shows on the page.

    Am I doing something wrong?

    Thanks,
    Steig

    #258687
    Tom
    Lead Developer
    Lead Developer

    Are the featured images for those posts set?: https://docs.generatepress.com/article/adding-featured-images/

    #258695
    Steig

    Ok, that is what I’m doing wrong. But I didn’t set the images as featured because it pushes the sidebar down.

    I wanted the sidebars to remain the same and the picture to show in just the main body of the post.

    Is it possible to restrict the size of a featured image?

    #258696
    Tom
    Lead Developer
    Lead Developer

    You can hide or move the single post page header in Customize > Layout > Page Header.

    The size of the single post featured image can be changed in the Page Header meta box of the specific page. There’s no global sizing for that yet: https://docs.generatepress.com/article/page-header-image/

    #258978
    Steig

    I’ve redone a couple of posts so the images are headers and restricted size. Does WP Show Posts work ok if some have header images and some don’t?

    I’m still not getting them to show. I’ve checked the box to show images and only am setting the width (assuming the height will auto size for aspect ratio).

    But no images are showing. https://arlinstitute.org/news-home

    unrelated, do you know of a simple means of putting social share icons on a single page? It seems plugins focus on getting them onto all pages/posts. I’m doing that for all posts, but would like to put them on a single page and that seems to be universally unsupported.

    #259047
    Tom
    Lead Developer
    Lead Developer

    Hmm, strange. You’ve uploaded them using the Featured image meta box and not the Page Header meta box, correct?

    You’d have to use a plugin like AddThis – they should have options to display the icons on single posts and not pages etc..

    #259247
    Steig

    I think I’m sorted out. I had uploaded the image as a page header instead of featured image, not really appreciating the difference between them. Thank!

    #259337
    Tom
    Lead Developer
    Lead Developer

    No problem!

    #261111
    Steig

    Tom,

    I just noticed that images loaded as feature images don’t show the picture caption by default. Is there a way I can make the caption show if one is present for featured images?

    Thanks

    #261156
    Tom
    Lead Developer
    Lead Developer

    Featured images typically don’t show the captions in WordPress: https://developer.wordpress.org/reference/functions/the_post_thumbnail/

    It’s something I might look into in the future.

    #261267
    Steig

    I can see why a captain wouldn’t show up when it’s actually showing as a thumbnail, like in WP Show Posts, but when looking at the post itself and the image is more prominent, then it makes sense the caption could be needed.

    I guess I have to choose between having a “summary” page of posts with images showing automatically or giving photo credits.

    Thanks for letting me know.

    #261280
    Steig

    Would it be possible, at the post level, to set the featured image and also insert the same picture through the “add media” button. then when the post is viewed at the post level, only show the picture added via the “add media” button so the caption can show up.

    But when the summary of posts is showed using WP Show Posts, then it would use the featured image instead.

    That would require some coding that would detect if the viewer was at the post level to suppress the featured image.

    #261465
    Tom
    Lead Developer
    Lead Developer

    You can hide the featured image when viewing the single post.

    If you’re using GP on the site, you could go to Customize > Layout > Page Header and set the single page header position to hide.

    #261674
    Steig

    That solved my problem perfectly. Thanks!

    #261747
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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