Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   bfa_excerpt (http://forum.bytesforall.com/showthread.php?t=18602)

kal Oct 7, 2012 05:24 PM

bfa_excerpt
 
Is it possible to include a thumbnail of a video in excerpts? A lot of my posts lately are youtube videos. Any way to include the video thumb? Or just the whole post instead of an excerpt?

lmilesw Oct 7, 2012 07:52 PM

How about just using a featured image for those posts?

juggledad Oct 8, 2012 04:29 AM

you can edit the postformat.php virtual template and tell it what you want: 'the_content()', 'bfa_excerpt()' or ,'the_excerpt()', each wich present the posts in a sligntly different way. Read about them in the 'Limited Set of PHP code' tab in the templates section (right hand side)

kal Oct 8, 2012 03:33 PM

I got it. Thanks!

runets Jan 1, 2013 02:37 PM

Quote:

Originally Posted by kal (Post 91065)
I got it. Thanks!

Can you explain to me in detail how I can do this.??please
what code should be in my virtual template /

stelten Jan 7, 2013 12:33 PM

Hello Juggledad,

it somehow does not work. If I change the "<?php bfa_excerpt( 55, ' ...' ); ?>" to "<?php the_content(); ?>" the site looks like this:
http://twitpic.com/proxy/web7/img/71...238-scaled.jpg

That can't be right.


Could you please tell me how I have to change the code in order to get rid of the "read me"-option and to show the complete blogpost on the main blogsite?

Here is the code how it is right now:

<div id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?>>

<h2>
<span class="post-format"></span>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
<?php bfa_comments_popup_link( '0', '1', '%' ); ?>
</h2>

<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?>

<div class="post-bodycopy cf">

<div class="post-date">
<p class="post-month"><?php the_time( 'M' ); ?></p>
<p class="post-day"><?php the_time( 'j' ); ?></p>
<p class="post-year"><?php the_time( 'Y' ); ?></p>
</div>

<?php bfa_excerpt( 55, ' ...' ); ?>

</div>

<div class="post-footer">
<a class="post-readmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php _e( 'read more &rarr;', 'montezuma' ); ?></a>
<p class="post-categories"><?php the_category( ' &middot; ' ); ?></p>
<?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>
</div>

</div>

juggledad Jan 7, 2013 01:34 PM

Check out the patch that is a sticky in the forum


All times are GMT -6. The time now is 10:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.