Someone on the Blogsome Forums wanted to be able to have the main page only display posts from a certain category.
To do this, edit your post.html file, and add the following right at the start:
{capture name=in_cat}{in_category category='1'}{/capture}
{if $smarty.server.REQUEST_URI != '/' || $smarty.capture.in_cat == '1'}
Then, right at the end, add {/if}
If you are wanting a category other than the default one to be the only one shown on your front page, look up the category id in the dash, and replace the ‘1′ in the first line with this number.
This could easily be extended to get a sticky-post setup. I’ll do that later tonight, when I’m drunk. Just to make it a challenge. Happy 30th Sam.
OMG!!! Thank you, thank you, thank you! I’ve been looking for help in this area for days now! Of course, it took me over an hour to understand the simple directions, but I’m so happy now. lol I was missing the part of placing the {/if} right at the end of the post file. I was placing it at the end of the rest of the code. lol
Well, I just wanted to thank you for this great post.
Davi
8 months, 1 week after the fact.