WordPress.org

Ready to get started?Download WordPress

Forums

PHP newbie: selecting multiple tags from $wpdb? (1 post)

  1. diobiesel
    Member
    Posted 4 years ago #

    Hi all. I am just trying to include more than one tag in this line from:

    <?php
                global $wpdb;
                <strong>$tag = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name='featured'");</strong>
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                $args=array(
                   'tag__not_in' => array($tag,),
                   'paged'=>$paged,
                   );
                query_posts($args);
                ?>

    That is, have that include 'featured' and also 'tag2', tag3', etc.

Topic Closed

This topic has been closed to new replies.

About this Topic