WordPress.org

Forums

Codex: Wrong type for $post->post_author? (1 post)

  1. Henry Wright
    Member
    Posted 1 year ago #

    If I do var_dump( $post->post_author ) inside the single.php loop I get string '1' (length=1).

    The Codex states the post_author (The ID of the post author) property is of type integer.

    Does this mean the Codex is wrong?

    Ref: http://codex.wordpress.org/Function_Reference/$post

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags