WordPress.org

Forums

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

  1. Henry Wright
    Member
    Posted 11 months 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

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 11 months ago by Henry Wright
  • This topic is not resolved
  • WordPress version: 3.9.1

Tags