Assistance with query_post code
-
Hi There.
I am trying to run a query that shows 4 posts, from a certain category and that excludes specific posts.
I cannot figure out how to combine the “post_not_in” array with any other parameters.
Here is a slightly simplified version of my code, if someone could please help me correct it as I can only do basic php, then I’d appreciate it ??
<?php $args = array(
‘cat’ => ’64’,
‘showposts’ => ‘4’,
array(‘post__not_in’=>array(121,)),
);
query_posts( $args );?>Regards
Itai
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Assistance with query_post code’ is closed to new replies.