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)
-   -   [SOLVED] How much post in main page (http://forum.bytesforall.com/showthread.php?t=22594)

Szymon9 Jun 26, 2014 07:45 AM

[SOLVED] How much post in main page
 
I was hesitating whether to show the whole Posts on the main page or not. I changed subtemplate postformat.php from the_excerpt to the_content.

But I am not quite satisfied with the result, because my youtube videos are hidden in the main page and I think no one would click the button "read more" to actually view the video. Is there a way to show the video in the_excerpt :confused: in the main page ?

Or maybe manually decide whether selected posts are showing the whole content or the excerpt ?

I forgot my page address : www.projektowaniebim.pl

juggledad Jun 26, 2014 12:37 PM

I would suggest creating a virtual sub-template called 'postformat-video' as a copy of the 'post format.php' sub template.

then change the line
HTML Code:

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

        <?php the_excerpt(  ); ?>
next edit the post, create a manual excerpt and set the post format to 'video'

Szymon9 Jun 30, 2014 05:57 AM

Thank you. It worked


All times are GMT -6. The time now is 01:37 PM.

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