Add featured image excerpt

January 2013 WordPress Theme
GK User
Tue Mar 12, 2013 12:50 pm
I'd like to suggest you to add the possibility of showing the image excerpt in the article view (just like it is in the joomla counterpart)

If you add this at functions.php

function get_post_thumbnail_caption() {
if ( $thumb = get_post_thumbnail_id() )
return get_post( $thumb )->post_excerpt;
}

and call this function at content.post.featured.php

<figure class="featured-image">
<?php the_post_thumbnail(); ?>
<span class="itemImageCaption">
<?php echo wpautop( get_post_thumbnail_caption() ); ?>
</span>
</figure>

It would be nice than, for the Pin button, getting the excerpt of the image, and not the title of the article.


You can see my implementation in this example http://www.albanianews.it/cultura/donna ... arco-tempo
User avatar
Fresh Boarder

GK User
Tue Mar 12, 2013 2:36 pm
Hi,

This feature will be available in the GavernWP 1.7 - I've added yesterday this feature to the official 1.7 branch: https://github.com/GavickPro/Meet-Gaver ... 1db7f6fc2c
User avatar
Administrator

GK User
Tue Mar 12, 2013 4:02 pm
dziudek wrote:Hi,

This feature will be available in the GavernWP 1.7 - I've added yesterday this feature to the official 1.7 branch: https://github.com/GavickPro/Meet-Gaver ... 1db7f6fc2c


Fantastic...don't forget to get the caption of the featured image for "Pin it" button :-)
User avatar
Fresh Boarder

GK User
Tue Mar 12, 2013 4:06 pm
User avatar
Administrator

GK User
Wed Mar 13, 2013 11:03 am
Pinterest button description implemented: https://github.com/GavickPro/Meet-Gaver ... a9d4c7076e :)
User avatar
Administrator


cron