WordPress.org

Forums

[resolved] get_the_tags question (3 posts)

  1. lexhair
    Member
    Posted 7 years ago #

    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.

  2. No, it will return an array of tag objects if it has tags. PHP is not a strongly typed language.

  3. lexhair
    Member
    Posted 7 years ago #

    Thanks, Otto!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags