get_author_posts_url() not working
-
WP 3.5. There are multiple authors in blog.
I’m calling this in the loop, so it should work, no?
get_author_posts_url(get_the_author_meta(‘ID’)) is returning simply the domain name, not the full URI string.
the ID being returned is correct. (I checked it.)Furthermore, when I type in a URL that should work: https://test/authors/Pretty-Name/
I get 404. (this is a localhost alias, not a live site.) That problem holds for any versions of the author names.I created an author.php template, but that isn’t being called.
I’ve looked at the codex on author template, and the various author function calls, but no luck.
Any guidance to offer?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘get_author_posts_url() not working’ is closed to new replies.