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)
-   -   List only one category on the frontpage? (http://forum.bytesforall.com/showthread.php?t=19977)

Hydeisch Mar 24, 2013 05:58 AM

List only one category on the frontpage?

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.


lmilesw Mar 24, 2013 06:11 PM

When I want to show a single category I use a plugin like TPG Get Posts or List Category Posts.

Hydeisch Mar 25, 2013 05:16 PM

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?

lmilesw Mar 25, 2013 08:10 PM

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.

All times are GMT -6. The time now is 04:12 PM.

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