Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

bfa_excerpt


  #1  
Old Oct 7, 2012, 06:24 PM
kal's Avatar
kal
 
149 posts · May 2009
Rhode Island
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?
__________________
Ho Ho Ho
Blah Blah Blah
  #2  
Old Oct 7, 2012, 08:52 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
How about just using a featured image for those posts?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Oct 8, 2012, 05:29 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Oct 8, 2012, 04:33 PM
kal's Avatar
kal
 
149 posts · May 2009
Rhode Island
I got it. Thanks!
__________________
Ho Ho Ho
Blah Blah Blah

Last edited by kal; Oct 8, 2012 at 04:37 PM.
  #5  
Old Jan 1, 2013, 03:37 PM
runets
 
3 posts · Jan 2013
Quote:
Originally Posted by kal
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 /
  #6  
Old Jan 7, 2013, 01:33 PM
stelten
 
1 posts · Jan 2013
Hello Juggledad,

it somehow does not work. If I change the "<?php bfa_excerpt( 55, ' ...' ); ?>" to "<?php the_content(); ?>" the site looks like this:


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>
  #7  
Old Jan 7, 2013, 02:34 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Check out the patch that is a sticky in the forum
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
<?php bfa_excerpt(); ?> is not showing the excerpts Heka Montezuma Theme 5 Oct 4, 2012 03:27 AM


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


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