List only one category on the frontpage?
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:
I've also created the postformat-nyheter sub-template but I'm not sure what else I'm supposed to do. Thanks |
When I want to show a single category I use a plugin like TPG Get Posts or List Category Posts.
|
Its not exactly what I'm trying to do. I want it to look like on the startpage but only 1 category.
PHP Code:
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? |
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 10:26 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.