• Resolved steve49589

    (@steve49589)


    I actually found a post written 1 year ago that asked the same question, but the formatting of the answer is all messed up in Chrome and I can not figure out the code.

    Would like to add a line under the post title, with the publish date

    Headline of the post is here
    Published: Aug. 23, 2012
    Excerpt would go here.

    Any suggestions? I would like to add this functionality within the shortcode instead of tweaking your plugin to avoid overwriting changes.

    Thanks in advance.

    http://ww.wp.xz.cn/extend/plugins/latest-posts-by-author/

Viewing 1 replies (of 1 total)
  • Plugin Author Alex Mansfield

    (@alexmansfield)

    I just added a number of filters to version 0.9, so you can now safely display the date by adding the following code to the functions.php file of your theme:

    function latestbyauthor_date( $content ){
    	return $content . '<p>Published: ' . get_the_time('M j, Y') . '</p>';
    }
    add_filter( 'latestbyauthor_link_after', 'latestbyauthor_date' );
Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Latest Posts by Author] Add post date after post title’ is closed to new replies.