Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

is it possible to create an alphabet pagination? as well as alphabet order of a query post???

I can't a solution on this based on the regular queries.

I would appreciate any help, thanks in advanced.

UPDATED***

Well since apparently this hard to understand, I will explain myself better.

I'm looking for a way to query post based on the alphabet order that allow me paginate NOT by page but alphabet first letter. In this order I cannot use default order_by = 'title' as some1 suggested.

PD: ifyou are going vote down, at least contribute with something, I don't think that is really hard to understand that more than the 50% of the users of the site don't use english as first language, so even if we do all our best to help the community we can make mistake sometimes. In this order if you are going to say "Explain yourself better" at least give an opinion of what you understood.

share|improve this question
1  
What are you trying to query? Posts? Pages? CPT? Taxonomies? This question needs WAY more detail. –  m0r7if3r Feb 27 '12 at 18:28
    
Please revise your question with specific details of what you're trying to do, otherwise it's impossible to answer. –  EAMann Feb 27 '12 at 18:42
    
I just edited the post, as I said, I'm just looking for a way to paginate based on the alphabet, meaning (A, B, C, etc), and not an array based on order_by –  andresmijares25 Feb 27 '12 at 21:02
add comment

2 Answers

up vote 4 down vote accepted

i wrote about something similar recently, maybe it could be helpful to you:

http://www.kathyisawesome.com/424/alphabetical-posts-glossary/

it was based off of my answer to this question: How to build a directory with indexes in Wordpress

the answer includes both my original posts_where solution and an alphabetical "menu" that for some reason i didn't write about in my tutorial

share|improve this answer
    
Thanks so much! I will take a look and let you know :)! –  andresmijares25 Feb 27 '12 at 22:49
add comment

WP_Query_Post() uses the same parameters as WP_Query(), so it would be something like WP_Query_Post ( array ( 'orderby' => 'title', 'order' => 'ASC', 'posts_per_page' => '7' ) );

Provided that's what you're asking, which isn't really clear.

share|improve this answer
    
I've tried with this, however as I mentioned I'm looking for a away to also paginate based on alphabet letters (meaning A, B, C and so on), I think I was clear enough with "alphabet pagination", anyway, thanks for you help –  andresmijares25 Feb 27 '12 at 21:00
1  
Ah, that is going to be a bit trickier. You'll need to remove the post limit (so it doesn't only display X posts), then most likely create a custom function for that alphabetical pagination. That's a bit beyond what I can bash out at the moment, but perhaps with your updated question someone else can build on this. Also, check bacsoftwareconsulting.com/blog/index.php/web-programming/… for a custom pagination starting point. –  SickHippie Feb 27 '12 at 21:36
1  
Thanks man, I'd appreciated you help! –  andresmijares25 Feb 27 '12 at 22:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.