hello,
am using the code below to show posts in a horizontal manner, i would like some assistance to show posts from a specific category, the code is below;
hello,
am using the code below to show posts in a horizontal manner, i would like some assistance to show posts from a specific category, the code is below;
add a category parameter to the query:
http://codex.wordpress.org/Class_Reference/WP_Query
about thumbs:
http://codex.wordpress.org/Post_Thumbnails
here is the code http://pastebin.com/zJ01ff0V i read the codex but am not sure where to place this code $query = new WP_Query( 'cat=4' );
Thanks
nowhere - the link was meant to point to the category parameters you could use in your existing query_posts() code.where to place this code $query = new WP_Query( 'cat=4' );
example:
$args = array(
'posts_per_page' => $posts_per_page,
'paged' => $paged,
'cat' => 4
);
query_posts($args);Thanks that worked like a charm...for the thumbnail i need to add this wootheme code above the title ...
thumbnail code is http://pastebin.com/6wzbgv04
the title code is seen over here http://pastebin.com/zJ01ff0V
You must log in to post.