Home Forums General Issues Output of taxonomy variable is "ARRAY"


Output of taxonomy variable is "ARRAY"

  • I am trying to pass a variable to query_posts so that blog posts from a selected category can be displayed. I have “echoed” the output of the variable and it’s not a number, but “Array.”

    This is the code I have.

    <?php $projectCat = get_field('project_blog_category');?>
    <?php query_posts("showposts=3&cat=$projectCat"); ?>

    Help greatly appreciated!

Viewing 1 post (of 1 total)

The topic ‘Output of taxonomy variable is "ARRAY"’ is closed to new replies.