I'm trying to get the tags from within the Loop and use them as variables. It's all working kind of okay - I just keep getting this warning:
"Warning: Invalid argument supplied for foreach()..."
I'm using this, from the codex, and from what I can see, I'm implementing it as I'm supposed to, but that warning will *not* go away.
The piece of code that I've written:
foreach((get_the_tags()) as $tag) {
$posttag = $tag->slug;
}
This is *definitely* within the Loop. The posts display as they should - so it's calling in the variables correctly - but I still get that stinkin' warning on the page. I'm thinking I need another set of eyes - would anyone know why it's doing this?