Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Advice on Custom Template vs plugin?


  #1  
Old Dec 31, 2015, 11:07 AM
jms5017's Avatar
jms5017
 
112 posts · Jul 2010
NY/NJ Metro area
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?
  #2  
Old Dec 31, 2015, 02:16 PM
jms5017's Avatar
jms5017
 
112 posts · Jul 2010
NY/NJ Metro area
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..
  #3  
Old Dec 31, 2015, 06:19 PM
juggledad's Avatar
juggledad
 
23,649 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice for a booking plugin johnadams Plugins & Atahualpa 2 Jan 31, 2013 10:18 PM
Advice on a Calendar Plugin kdawes01 Plugins & Atahualpa 7 Sep 22, 2011 07:15 AM
Advice on iframe vs template blueprairie Center area post/pages 1 Jan 17, 2011 07:35 PM
Nifty plugin, need CSS advice for it paulae Excerpts, Read more, Pagination 2 Apr 5, 2009 08:27 PM


All times are GMT -6. The time now is 02:45 PM.


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