Support » Plugin: Display Posts Shortcode » Add author display to post // shortcode?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Erickson


    This currently isn’t built into the plugin, but I’ve added it to the roadmap ( ).

    For now, it will require custom php coding. You’ll need to use an output filter. Try adding this to your theme’s functions.php file:

    Bill, great news about the roadmap– and thanks for your quick response.

    Still unable to get author to display, however. Dreamweaver showed me an error on the first snippet of author code which originally read:

    $author = ‘<span class=”author”>’by ‘ . get_the_author() . ‘</span>;

    I then changed it to the following, and the error went away:

    $author = ‘<span class=”author”>by ‘ . get_the_author() . ‘</span>’;

    (in functions.php)

    I’ve also tried to take out the ‘by’ all together, thinking that was the problem, and have added .author {display:block;} in the css just for insurance. Still no luck.

    Any thoughts?

    Thank you for your time on this.

    Wait a minute– i’m very sorry, but this just started working. Guess cache of functions.php takes a bit longer to reload.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add author display to post // shortcode?’ is closed to new replies.