query_posts problem
-
So here is my code…
query_posts(array('posts_per_page'=>-1, 'post_type'=>'event', 'orderby'=>'meta_value', 'meta_key'=>'event_date', 'order'=>'ASC' ));
That outputs all posts… works just fine.
What I want to do is limit it to 5…
so I changed it to:query_posts(array('posts_per_page'=>'5', 'post_type'=>'event', 'orderby'=>'meta_value', 'meta_key'=>'event_date', 'order'=>'ASC' ));
that didn’t do it.
thoughts?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘query_posts problem’ is closed to new replies.