• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Showing First Photo in Post Excerpts

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Showing First Photo in Post Excerpts

This topic is: not resolved

Tagged: minimum-pro post excerpts

  • This topic has 6 replies, 4 voices, and was last updated 9 years, 1 month ago by obra18.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 18, 2013 at 12:41 pm #79999
    carrieoke13
    Participant

    Hi, I'm using Minimum Pro for a blog that will heavily feature photos, and I'm wondering if there's a way to format the home page a certain way.

    Currently I have it set up so the home page is the blog listing, which is excerpts and the featured image on the post. I really want the excerpt to just be the first image, with a few lines of the post under it.

    Is there a way to have the first image show up in the excerpt, EVEN if the image is NOT uploaded to WordPress and the featured image? (For example, if the first image is embedded with html from Flickr, or another site.)

    Thanks!

    http://fewandfarproject.com
    December 21, 2013 at 6:23 am #80588
    Brad Dalton
    Participant

    Generally that's the case with sites running HTML 5 as they display the first image as the featured image on content archives unless one is added manually.


    Tutorials for StudioPress Themes.

    December 28, 2013 at 12:32 pm #81615
    carrieoke13
    Participant

    Hmm, Minimum Pro is an HTML5 theme and that doesn't seem to be how it's working. If I upload an image to the site and designate it featured image, it shows in the excerpt. But I'm wondering if I can get ANY first image to show in the excerpt; for example - if the first image I post in a post is from Flickr (using the HTML code from Flickr), is there a code snippet that can grab that image info and show it in the excerpt?

    December 28, 2013 at 3:18 pm #81661
    Brad Dalton
    Participant

    Not from Flickr because its not uploaded to your Media Library.

    You would need custom code for that.


    Tutorials for StudioPress Themes.

    February 28, 2014 at 5:05 pm #92887
    tfmwa
    Participant

    This plugin + custom function might help:
    http://wordpress.org/support/topic/thumbnail-not-generated-from-flickr-post?replies=4

    Still trying to figure out how to change the default embed/wordpress template width for Flickr images posted to WordPress in this manner, but it works. Keep in mind it only works for new images posted in such a way, it won't work retroactively.

    I think Studiopress can really set its dedicated photography themes apart from the competition even further by adding support for Post to WordPress functionality like this from Flickr and possibly other mainstream image platforms.

    February 28, 2014 at 6:04 pm #92892
    tfmwa
    Participant

    So scratch that. In the plugin settings you can click a button to generate a thumbnail for all your posts, so it will work retroactively.

    We're using the Expose theme. To get the image to display 'full width' on the blog page (or in an archive template if you will) I needed to add:

    img.alignleft.post-image.entry-image {
    width: 760px;
    }
    

    Probably not the prettiest way to fix it, but it gets the job done. Basically, view the source code of the blog page and see what the featured image/thumbnail class is and change the width property with some custom css.

    You may or may not have to change your thumbnail settings under Dashboard > Settings > Media as well.

    Hope this helps someone in the future.

    October 29, 2014 at 9:21 am #129746
    obra18
    Member

    hi..
    i am facing the similar problem... but in my case blogroll is showing random image, in some of the excerpt, from the post instead of showing first image..
    i have not set any featured image...

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble