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!