Support » Fixing WordPress » Echo var inside WP query

  • Hi,

    As get_the_meta needs to be echo’d how do I do that with this query:

    <?php
    $variable = get_post_meta($post->ID, 'meta-name', true);
    query_posts('showposts=10&cat='.$variable);
    ?>
  • The topic ‘Echo var inside WP query’ is closed to new replies.