[wp-hackers] Filter by letter

Leo Baiano ljunior2005 at gmail.com
Mon Jan 2 17:34:21 UTC 2012


Thank you guys, I managed to solve the following tip from Fris.

2012/1/2 Jeremy Clarke <jer at simianuprising.com>

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Amplexos,

Leo Baiano
http://www.leobaiano.com
http://www.blog.ljunior.com
http://www.mcelebridades.com
http://www.twitter.com/leobaiano


More information about the wp-hackers mailing list