StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-08-2008, 01:34 PM
StuUK StuUK is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2008
Posts: 327
Default Archive Page Tweak

I am trying my damdest to do this without asking but it is driving me wild!

I am wanting to split up the posts into categories. Where the "by post" is I want, Cat 1, then the list, Cat 2, then the list etc etc. I have a fixed number of Categories so the Cat title will be hardcoded, I just need to know the code that pulls the specific categories under each heading.

Ive tried this but its not working, any ideas

Code:
<ul>
                     <?php $recent = new WP_Query("cat=1&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>[*]<?php the_title(); ?>
                            <?php endwhile; ?>[/list]
cat=1 would change depending on what cat to be listed
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple hook code tweak hiding by line turns on page dates jimpepe General Discussion 3 12-20-2010 11:11 PM
A little tweak in the footer... labecs General Discussion 3 02-07-2010 05:39 PM
Home Page Tweak in Church Theme micksay General Discussion 5 12-13-2009 03:46 PM
Tweak Order of Posts on Feature Page Template ptoledo1 General Discussion 3 04-07-2009 02:37 PM


All times are GMT -5. The time now is 03:18 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.