• Resolved Remington700

    (@remington700)


    Hello! First I want to say that I absolutely love this plugin. I have a website where each category must have its own recent posts list. I have hundreds of categories, and so was faced with the terrible task of making a separate widget for each category, and amending each with widget logic to make it show up properly. It was hell, to be sure.

    AMRC does everything I want it to. It’s one of the best “Display current category recent posts” plugin out there, and I’ve tried almost all of them!

    So, as it is, there is only one improvement I’d reeeally like, and I promise to buy you a cup of coffee if you can fix it for me. I need the most recent posts to show up at the bottom of the widget rather than the top. Oldest posts at top, newest posts at bottom. I’ve poked the code myself, but I’m not that great at PHP and it looks like the Matrix.

    Could you please tell me if there’s a strip of code I can modify to make this switch? Thank you so much!!

    https://www.ads-software.com/extend/plugins/advanced-most-recent-posts-mod/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kailey (trepmal)

    (@trepmal)

    Assuming I understand correctly that you want to grab some number of the most recent posts and display them in reverse order, the fix will actually be pretty easy.

    Replace line 280 of adv-most-recent.php with this

    $posts = get_posts($query); //get posts
    $posts = array_reverse($posts);

    Basically, just adding the 2nd line.

    If for any reason that doesn’t work, let me know.

    Thread Starter Remington700

    (@remington700)

    It does work! That was rather simple. Thanks! ??

    Plugin Author Kailey (trepmal)

    (@trepmal)

    I’ve also just added this as an option to version 1.6

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Advanced Most Recent Posts Mod] Most recent posts at bottom’ is closed to new replies.