WordPress.org

Ready to get started?Download WordPress

Forums

Buttercream
Show Author and Calendar Widget for Private Posts (3 posts)

  1. lucycou
    Member
    Posted 1 year ago #

    Hello,

    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.

    Can someone please help with these issues???

    Thank you!!!

  2. lucycou
    Member
    Posted 1 year ago #

    Oh... and I just noticed .... also having same issue for Category widget. Not displaying private posts.

  3. Caroline Moore
    Member
    Theme Author

    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic