How do I change the coding in order for the author to be displayed in each post? I have a blog with different authors and need a way to easily tell which post was posted by who.
Also, all of the posts are set to private and I have managed to figure out how to get the archives widget to work to show private posts to those logged in, but I am having trouble figuring out how to get the Calendar widget to display private posts.
You can add the post author by doing the following:
1) Create a child theme
2) Copy content.php from the theme into your child theme (if you want the author to appear on all post types and in single post view, copy all content-*.php files into your child theme as well).
3) Paste this code in your child theme’s content.php (and any others you’ve brought in), wherever you want the author’s name to appear:
<?php the_author(); ?>
The widget issue isn’t related to the theme, so unfortunately I can’t help — you may try looking for a plugin to show private posts in widgets. Good luck!
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Show Author and Calendar Widget for Private Posts’ is closed to new replies.