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 »

List only one category on the frontpage?


  #1  
Old Mar 24, 2013, 04: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, 05:11 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 04: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, 07:10 PM
lmilesw's Avatar
lmilesw
 
10,176 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 05:36 PM
How To Get Category List To Expand When Its Title Is Clicked san65 Sidebars & Widgets 4 Jan 4, 2011 04:03 AM
Frontpage slideshow positioning on frontpage amadeu Center area post/pages 0 Jan 15, 2010 10:16 AM
[SOLVED] Category list not displaying all categories TV Lowdown Page & Category Menu Bars 0 Sep 4, 2009 07: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 05:22 PM


All times are GMT -6. The time now is 03:20 AM.


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