I have a custom display of meta-info (authors name, date and categories). So, I want to display a custom link to all posts by author. By theme default I have this <?php the_author_posts_link(); ?>
which displays author name and if you press on it you get what I want. On the index.php actually it is what I want, but on single.php I would like to have something like “view all pages by author” text and if you would press on it, it should do exactly the same as adding <?php the_author_posts_link(); ?>.
where should I start with this issue? Thanks!
Leave a Reply
You must be logged in to post a comment.
Attach a filter that only outputs a different link when you’re on single.php: