WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] get_the_tags question (3 posts)

  1. lexhair
    Member
    Posted 6 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. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

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

  3. lexhair
    Member
    Posted 6 years ago #

    Thanks, Otto!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags