Support » Themes and Templates » PHP newbie: selecting multiple tags from $wpdb?
5 years, 8 months ago
Hi all. I am just trying to include more than one tag in this line from:
<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;
'tag__not_in' => array($tag,),
That is, have that include ‘featured’ and also ‘tag2′, tag3’, etc.