When there are no tags associated with a post, I understand get_the_tags(); will return a false. Does that mean if there are tags, get_the_tags(); will return a true in an if statement? Thanks in advance.
When there are no tags associated with a post, I understand get_the_tags(); will return a false. Does that mean if there are tags, get_the_tags(); will return a true in an if statement? Thanks in advance.
No, it will return an array of tag objects if it has tags. PHP is not a strongly typed language.
Thanks, Otto!
This topic has been closed to new replies.