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

Type: Discussion
Status: New
amorphous
View Replies: View Best Answer
elyon replied on at Permalink Reply
elyon
Hi!

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!
amorphous replied on at Permalink Reply
amorphous
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!!!

$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>
elyon replied on at Permalink Best Answer Reply
elyon
Okay, it sounds like %THUMBNAIL% might be the image path?

So you could try something like this:


<img src="%THUMBNAIL%" />
thewebmarketer replied on at Permalink Reply
thewebmarketer
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
if ( function_exists( 'add_theme_support' ) ) {
   add_theme_support( 'post-thumbnails' );
        set_post_thumbnail_size( 210, 150, true );
}
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
thewebmarketer replied on at Permalink Reply
thewebmarketer
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?
elyon replied on at Permalink Reply
elyon
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
elyon replied on at Permalink Reply
elyon
You put this in the functions.php file for your WordPress theme?

You may need to also specify the dimensions in your IMG tag:

<img src="%THUMBNAIL%" width="210" height="150" />
thewebmarketer replied on at Permalink Reply
thewebmarketer
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/...

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.