WordPress.org

Support

Support » Themes and Templates » P2 » [Resolved] Sort posts by latest comments?

[Resolved] Sort posts by latest comments?

  • tomhaegler

    @tomhaegler

    Hello

    I want to show the P2 Posts by latest comments – as Facebook does it.
    Has anybody done this already? Sorry, I’m not that good at coding…

    cheers
    tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • ThomNagy

    @thomnagy

    +1

    tomhaegler

    @tomhaegler

    SOLVED: install plugin “filter by comments” and add code line

    <?php query_posts( ‘orderby_last_comment=1&paged=’ . $paged); ?>

    above the “loop”

    tomhaegler

    @tomhaegler

    sorry, not “orderby_last_comment” –> “orderby_last_activity”

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Sort posts by latest comments?’ is closed to new replies.
Skip to toolbar