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)
-   -   Advice on Custom Template vs plugin? (http://forum.bytesforall.com/showthread.php?t=23372)

jms5017 Dec 31, 2015 11:07 AM

Advice on Custom Template vs plugin?
 
I'm looking for general advice/strategy....
I want to have posts in category “home” show up as full text posts on the home page, and excerpts of posts from category “XXX’ show up on the “XXX” page.

What would be the better way to accomplish? A plugin like "list category posts" or modifying a template?
I am not very good with php, but I also like to avoid plugins because sometimes they cause problems on the site and/ or become orphans.....would the php method require a strong php expertise or is it something that could be gleaned from the php examples provided?

jms5017 Dec 31, 2015 02:16 PM

Adding the line
<?php bfa_custom_query('cat=5'); ?>
where 5 is the category id that I want to show on the page right before
the line:
<?php bfa_loop( 'postformat' ); ?>
in my custom-index template
displays only the posts I want on the page....however, its displaying just an excerpt, not the full post even though I didn't add the <!-- more--> tag....hmm...at least making some progress..

juggledad Dec 31, 2015 06:19 PM

I'd create a custom virtual template adnd use 'the_content()' when you fant the full posts and 'bra_excerpt()' or 'the_excerpt()' when you want the excerpt


All times are GMT -6. The time now is 09:33 PM.

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