July 13, 201214 yr Hi guys, I am new to wordpress, but I got this one question! Wordpress standard generate the posts on the homepage, what seems to be oké! I would like to have a homepage with some posts and another page with the other posts that I created, so that you get kinda 2 blogs on 1 site. Is there a possibilly that you can just use a category as a page or something like that? Cheers
July 13, 201214 yr so here ur thinking of displaying multiple loops in wordpress this is the basic loop for wordpress <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- do stuff ... --> <?php endwhile; ?> to show the loop again we use rewind posts something like this <?php rewind_posts(); ?> <?php while (have_posts()) : the_post(); ?> <!-- Do stuff... --> <?php endwhile; ?> if you want to display 3 posts from specific category use this // Get the last 3 posts in the featured category. <?php query_posts('category_name=featured&showposts=3'); ?> <?php while (have_posts()) : the_post(); ?> <!-- Do featured stuff... --> <?php endwhile;?> and on another page u can use rewind posts and use this //We reset the loop <?php rewind_posts(); ?> //We build the normal loop that will list out blog posts <?php while (have_posts()) : the_post(); ?> <!-- Do stuff... --> <?php endwhile; ?>
July 14, 201214 yr im not a wordpress guru, but surely this is just assigning cstegories or tags to certain posts and creating menus that display those categories.
July 14, 201214 yr Author Thanks for the reply, this is something to think about and i'm gonna work it out! Cheers
July 19, 201214 yr Hey RowruffDesign, Did you check out this WordPress Plugin? Posts to Page I've used it in the past (prior to WP version 3.0) and it was groovy. If you are running the very latest version (3.4.1) you will want to check it out before going to production. Hope that helps! Cheers.
Create an account or sign in to comment