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 »

List only one category on the frontpage?


  #1  
Old Mar 24, 2013, 05:58 AM
Hydeisch
 
2 posts · Mar 2013
Hi

I'm struggling to understand how to choose which category to show on my startpage.

I want only the post for the news category to show on the startpage.

I've tried creating a maintemplate and change to this
PHP Code:
<?php bfa_loop'postformat-nyhter' ); ?>
and then using a page called "start" as a static page and having the home virtual template choosen under virtual templates".

I've also created the postformat-nyheter sub-template but I'm not sure what else I'm supposed to do.

Thanks
  #2  
Old Mar 24, 2013, 06:11 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
When I want to show a single category I use a plugin like TPG Get Posts or List Category 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 Mar 25, 2013, 05:16 PM
Hydeisch
 
2 posts · Mar 2013
Its not exactly what I'm trying to do. I want it to look like on the startpage but only 1 category.

PHP Code:
<?php bfa_loop'postformat'?>
is what calls it to loop all the posts and format them using the subtemplate called postformat. But can I add some PHPcode so that it only checks for certain category ID's?

I've tried adding the list category post to one page but it just uses that 1 page as post in the index template and if i choose a page template it still doesnt display the way I want. I would have to rewrite most of the styling code for the plugin and some to montezuma I guess. There should be an easier way?
  #4  
Old Mar 25, 2013, 08:10 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
List Category Posts or TPG Get Posts should do what you want you just have to determine the proper attributes to add to the shortcode on a page.
__________________
~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.

Bookmarks

Tags
category, list category posts

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing category order in category menu bar, not in sidebar cat. list paulae Page & Category Menu Bars 13 Mar 30, 2011 06:36 PM
How To Get Category List To Expand When Its Title Is Clicked san65 Sidebars & Widgets 4 Jan 4, 2011 05:03 AM
Frontpage slideshow positioning on frontpage amadeu Center area post/pages 0 Jan 15, 2010 11:16 AM
[SOLVED] Category list not displaying all categories TV Lowdown Page & Category Menu Bars 0 Sep 4, 2009 08:11 AM
Flexx theme - How to change my "List Category or Archives" to "List Titles ONLY" ?? idaks01 Post-Kicker, -Byline & -Footer 0 Mar 28, 2009 06:22 PM


All times are GMT -6. The time now is 11:22 PM.


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