Community Forums › Forums › Archived Forums › Design Tips and Tricks › Showing First Photo in Post Excerpts
Tagged: minimum-pro post excerpts
- This topic has 6 replies, 4 voices, and was last updated 9 years, 1 month ago by
obra18.
-
AuthorPosts
-
December 18, 2013 at 12:41 pm #79999
carrieoke13
ParticipantHi, 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.comDecember 21, 2013 at 6:23 am #80588Brad Dalton
ParticipantGenerally 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.
December 28, 2013 at 12:32 pm #81615carrieoke13
ParticipantHmm, 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 #81661Brad Dalton
ParticipantNot from Flickr because its not uploaded to your Media Library.
You would need custom code for that.
February 28, 2014 at 5:05 pm #92887tfmwa
ParticipantThis plugin + custom function might help:
http://wordpress.org/support/topic/thumbnail-not-generated-from-flickr-post?replies=4Still 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 #92892tfmwa
ParticipantSo 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 #129746obra18
Memberhi..
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... -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.