This is weird. the_author_posts_link() produces a fatal error. the_author() works fine. The function is in the documentation, and I've never had a problem with it before. I am calling it on a category query on index.
I am running 2.9.2
This is weird. the_author_posts_link() produces a fatal error. the_author() works fine. The function is in the documentation, and I've never had a problem with it before. I am calling it on a category query on index.
I am running 2.9.2
I meant the_authors_post_link()
Doing a google search Ive noticed it failing on other blogs as well
Using the WordPress Default theme, in the wp-content/themes/default/index.php, have no problem when I change this
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
to this:
<small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?> </small>
Related:
ok, the wrong syntax,
the_authors_post_link()
is what is shown in code examples here: http://codex.wordpress.org/The_Loop.
Somebody needs to update that page. I tried but I dont have permission.
The correct function is indeed:
the_author_posts_link()
I think the function name may have recently changed?
Thanks.
If recent you mean since 2004, then yes!
http://codex.wordpress.org/index.php?title=Template_Tags/the_author_posts_link&action=history
Corrected two instances of the_authors_post_link() to the_author_posts_link() on that Codex page.
Oh you mean that scoundrel esmi just recently changed Codex ;)
Thanks esmi.
This topic has been closed to new replies.