I have a CCT called insite. I'm able to print out the author's information on page-insite.php, but any function I call to retrieve author information on single-insite.php is either blank or seemingly incorrect.
page version -> http://shp.wiredground.com/inside-shp/insite/
single version -> http://shp.wiredground.com/insite/insite-tolles-career-tech-center/
The following line is called from both pages:
echo '<date>' . get_the_date('F j, Y') . '</date>, by <a>ID ) ) . '">' . get_the_author() . '</a>';
- get_the_date() is returning "January 25, 2009" which is good.
- $post->ID is returning 1014 which is also good.
This is where it starts to fall apart...
- get_post($post->ID) returns author info of ["post_author"]=> string(1) "1"
but
- get_the_author_meta( 'ID', $post->ID ) is returning int(0)
Do you know of a reason (aside from me being an idiot) that I should see an ID of 1 for the author using get_post() and an ID of 0 using get_the_author_meta()? Maybe that's not even the issue.
Thanks!
http://wordpress.org/extend/plugins/custom-content-type-manager/