![]() |
WP/php question
I'm trying to list all the posts in a category alphabetically but the closest I've been able to get is
Code:
<?php wp_get_archives(type=alpha); ?> |
|
Thanks for the reply fris. Its looking like I'll just be hardcoding these links since the category will only be updated once a week and this is proving to be way above my skill level.
|
use <?php wp_list_categories('orderby=name'); ?> i think?
edit: or wait thats for categories (seemed so easy to cut and paste from the wp site that fris gave) <?php wp_get_archives('orderby=title'); ?> i usually just put stuff together till one of them works lol, good luck! |
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. |
|
Quote:
Code:
<?php $my_query = new WP_Query('cat_name=models&showposts=50&orderby=title'); |
Woo thanks a ton guys, got it now.
|
Quote:
|
Quote:
I only have one post in the category so far but I added in a few dummy posts if you wanna check it out. |
i like it...you know thw caregories don't get much indexing usually, right?
|
Yah its just there for anyone who ends up on that page through the link in the nav menu at the top or some other way to find what they're looking for easier.
|
Quote:
|
All times are GMT -7. The time now is 08:49 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123