Trouble editing codex page.
-
Saw a little confusing item here about the get_post() function.
Tried to edit but it said editing was limited members of the group ‘users’ and had link here.
But that page said the group doesn’t exist.
Confusing item was this:
It describes the function as get_post( $post, $output ) where $post should be an ID. But $post is a variable used by WordPress in the loop. and that is not what is being passed to that function.
Would be better if it read get_post( $id, $output )
Is the object returned by this function the same object commonly used as $post in the loop? If so, that makes this doubly confusing.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Trouble editing codex page.’ is closed to new replies.