Wordpress Thumbnails
Permalink Browser Info Environment
Hi,
Is there any way to show thumbnails / featured image for blog excerpts? I have video posts and I would like to have a page which shows the blog preview of each video. I can use a plugin to generate a featured image from each video, but unsure how to show these on the page (not from lack of googling or reading I may add, but obviously missing something)
Thanks in advance
Is there any way to show thumbnails / featured image for blog excerpts? I have video posts and I would like to have a page which shows the blog preview of each video. I can use a plugin to generate a featured image from each video, but unsure how to show these on the page (not from lack of googling or reading I may add, but obviously missing something)
Thanks in advance
Type: | Discussion |
---|---|
Status: | New |
Hi Elyon,
Thanks for the quick reply. I inserted the %Thumbnails% as per attached below, but it shows as a text link as opposed to the image itself - I'm sure I'm missing something simple, any help would be great!!!
Thanks for the quick reply. I inserted the %Thumbnails% as per attached below, but it shows as a text link as opposed to the image itself - I'm sure I'm missing something simple, any help would be great!!!
$templates['post'] = ' <div class="wordpress-entry"> <h2 class="wordpress-entry-title"><a href="%URL%">%TITLE%</a></h2> <div class="wordpress-entry-meta">Posted on %MONTH% %DATE%, %FULL_YEAR% by %AUTHOR_NAME%</div> <div class="wordpress-entry-content">%CONTENT%</div> <div class="wordpress-entry-utility">%CATEGORIES%%DISQUS_COMMENT_COUNT%%EDIT_POST%</div> <div class="wordpress-entry-image">%THUMBNAIL%</div> </div>
Okay, it sounds like %THUMBNAIL% might be the image path?
So you could try something like this:
<img src="%THUMBNAIL%" />
So you could try something like this:
<img src="%THUMBNAIL%" />
Digging up an old topic, but I have the thumbnails working with a custom template using %THUMBNAIL%, but It's basically taking the full size of the image and not a defining a thumnail size. I tried mucking around with the functions.php file adding
This did not work for me, whether I'm adding it wrong or it needs to go some where else?
Do you know how to define the thumbnail (featured Image) size? (210px x 150px cropped).
Thanks Elyon
if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 210, 150, true ); }
Do you know how to define the thumbnail (featured Image) size? (210px x 150px cropped).
Thanks Elyon
One more thing, I want to get rid of the older post link text. As in the block only shows 3 of the newest post with no option to view older posts. Can this be done in a custom template?
Yes, this would be possible.
One of the templates defines what a "multiple posts" page looks like. Just remove the %OLDER_POSTS% and %NEWER_POSTS% placeholders in your own version of that template value. Sorry I don't remember the exact value off the top of my head :)
I believe the add-on also includes a custom template which demonstrates what it might look like if you want to show only the latest posts, by title only. It's set up to ignore GET variables, so you can use it alongside a full blog, or you could put it on another page (like a home page) and set the "Blog Page" value to your real blog
One of the templates defines what a "multiple posts" page looks like. Just remove the %OLDER_POSTS% and %NEWER_POSTS% placeholders in your own version of that template value. Sorry I don't remember the exact value off the top of my head :)
I believe the add-on also includes a custom template which demonstrates what it might look like if you want to show only the latest posts, by title only. It's set up to ignore GET variables, so you can use it alongside a full blog, or you could put it on another page (like a home page) and set the "Blog Page" value to your real blog
You put this in the functions.php file for your WordPress theme?
You may need to also specify the dimensions in your IMG tag:
You may need to also specify the dimensions in your IMG tag:
<img src="%THUMBNAIL%" width="210" height="150" />
Yeah but the function.php file was a bit confusing. I ended up finding this plugin that does the trickhttp://wordpress.org/extend/plugins/simple-image-sizes/...
You should be able to do this if you create a custom template for the add-on.
There's an easy system that makes it possible to edit the layout of the WordPress Entries block without it being too technical, and while still allowing for future upgrades of the add-on.
Check out this page:
http://www.concrete5.org/marketplace/addons/wordpress-for-concrete5...
There is a %THUMBNAIL% value you can use to insert post thumbnails into the markup.
Let me know if you have any questions!