Support » Plugins » Adding author name to Smart Archives Reloaded plugin

  • Resolved nli

    (@nli)


    I couldn’t find an archives plugin that would show name of the author after the title of each post in a multi-author blog.

    I thought that maybe it could be possible to hack Smart Archives Reloaded plugin to do that.

    One should probably add something to the following piece of code:


    // Get post links for current month
    $post_list = '';
    foreach ( self::$monthsWithPosts[$current][$i]['posts'] as $post )
    $post_list .= sprintf("\t

  • %s
  • \n", get_permalink($post->ID), $post->post_title);

    Could anyone tell me how to modify the code?

    Or, tell me if there is a plugin that is already doing what I’m looking for.

Viewing 2 replies - 1 through 2 (of 2 total)
  • nli

    (@nli)

    Trying again to add the code:

    // Get post links for current month
    $post_list = '';
    foreach ( self::$monthsWithPosts[$current][$i]['posts'] as $post )
    $post_list .= sprintf("\t<li><a href='%s'>%s</a></li>\n", get_permalink($post->ID), $post->post_title);

    New version of the plugin has that option included.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding author name to Smart Archives Reloaded plugin’ is closed to new replies.