[wp-hackers] Filter by letter

fris fris at fris.net
Tue Dec 13 21:36:48 UTC 2011

I did something like this recently, had an 0-9 a-z alphabet index on the top
of my site, and when you click on letter, it loads the post via ajax.

You wouldn't need custom fields for this, just wpdb queries.

Have a peek at the code.


-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Leo Baiano
Sent: Monday, December 12, 2011 2:55 PM
To: wp-hackers at lists.automattic.com
Subject: [wp-hackers] Filter by letter

In a project must create a filter to list the posts from the first letter of
the title. I thought of creating a custom field and for saving the post to
retrieve the first letter of the title and save this custom field, just in
time to friltrar I could use meta_key and meta_value, butwas wondering if
there a better way to do this .


Leo Baiano
wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list