PHP newbie: selecting multiple tags from $wpdb?
-
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.
- The topic ‘PHP newbie: selecting multiple tags from $wpdb?’ is closed to new replies.