Hi, I'm currently working on a custom theme and was wondering how I can create a home page with distinct category sections (simply separating posts by category) like in this theme: http://demo.wpzoom.com/?theme=magnific Is there a specific tidbit of PHP I have to include in the homepage, or is there some call I have to enter? I'd just like to separate the posts by category. From there, I think I can tinker my way around and create the rest of the theme. Any input would be greatly appreciated
Assuming you're using Wordpress? You need to add a post query before your loop like so: <!-- POST QUERY --> <?php query_posts($query_string . '&cat=13'); ?> <!-- change cat=13 to the category to be displayed --> <!-- THE LOOP --> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- YOUR STUFF --> <?php endwhile; else: ?> <?php endif; ?> <!-- LOOP ENDS --> Code (markup): Further reading here: http://codex.wordpress.org/Function_Reference/query_posts