[wp-hackers] Filter by letter
Jeremy Clarke
jer at simianuprising.com
Mon Jan 2 17:31:43 UTC 2012
On Mon, Dec 12, 2011 at 2:55 PM, Leo Baiano <ljunior2005 at gmail.com> wrote:
> In a project must create a filter to list the posts from the first
> letter of the title.
>
>
I'm pretty sure you can do this with a normal posts query:
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
'orderby'=>'title'
Adding that to any query should make the posts come in alphabetical order
based on the title.
--
Jeremy Clarke • jeremyclarke.org
Code and Design • globalvoicesonline.org
More information about the wp-hackers
mailing list