Help with customer query please
-
Hi,
I have a template that takes wordpress custom query, the custom query I would like to use is this one from the wordpress website:
————————————
All Posts in a CategoryThe “Blog pages show at most” parameter in Settings > Reading can influence your results. To overcome this, add the ‘posts_per_page’ parameter. For example:
query_posts( array ( ‘category_name’ => ‘category-slug’, ‘posts_per_page’ => -1 ) );
————————————————I do not understand how to put it together.
I tried to put my slug and category name as “slug=size52” and cat name as “size52-Tshirts” and 12 as the number of post per page.like this:
query_posts( array ( ‘size52-Tshirtse’ => ‘slug=size52′, ’12’ => -1 ) );The query does not work, what did I miss please?
Thank you,
Ben
- The topic ‘Help with customer query please’ is closed to new replies.