WordPress.org

Ready to get started?Download WordPress

Forums

Echo var inside WP query (1 post)

  1. robmuzo
    Member
    Posted 2 years ago #

    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);
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.