Forums

[resolved] query_posts as an array (2 posts)

  1. kayjayone
    Member
    Posted 3 years ago #

    Had the current query_posts working...

    <?php query_posts( 'posts_per_page=5&cat=6&post_status=future,publish&order=ASC')?>

    Wanted to add tag to the query, from my understanding you cannot query on both category and tag unless you use an array. Implemented the following with no data returned...

    <?php query_posts(array('cat'=>'6','tag_slug__and'=>array($current),'showpost'=>'5','post_status'=>'future,publish','order'=>'ASC') );?>

    There is one record that should be returned. Is there an error in the code?

  2. kayjayone
    Member
    Posted 3 years ago #

    my apologies, it is working the record had not been published.

Topic Closed

This topic has been closed to new replies.

About this Topic