Thread: WP/php question
View Single Post
Old 09-20-2009, 11:07 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by whiskey dick View Post
I'm actually trying to list the posts from a particular category in alphabetical order, not the category names.

I have a new site with a featured model category and on the page for the "Models" category (splackle.com/category/models/) I want an alphabetical list of all models I've added above the actual entries.

I just went ahead and put the link in by hand since I'll only be updating that category once a week and it shouldn't be a big deal to add a new one for each post.
you want something like this then

Code:
<?php $my_query = new WP_Query('cat_name=models&showposts=50&orderby=title');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>

<a href="<?php the_permalink();?>"><?php the_title();?></a>

<?php endwhile; ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote