what does this line of code do?
-
Hi –
I’ve read the docs on this, and I *think* I understand, but I want to be sure, because I’m basing some work on this.
$thispage = $wp_query->post;
Am I correct in my assumption that this is assigning the contents of a data structure (the current post) to a variable called $thispage?
If I am correct, is there any documentation on the data structure for a post?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘what does this line of code do?’ is closed to new replies.