Sort by Comments

Description:
Adds some forum functionality to WordPress. Changes the order of posts so that the most recently commented posts show up first. Also displays last comment with the posts. Changes affect home page only. Intended for use with the Prologue theme (about), but should play nicely with other themes as well.

Download:
Fetch the latest version (0.1.1)!

Install:

  1. Download and unzip the plugin.
  2. Upload to /wp-content/plugins/
  3. Navigate to Dashboard > Plugins and activate the plugin

Changelog:
0.1.1
- Querys all posts and sorts them by [most recent comment | date published] (whichever is more recent) before displaying the home page
- Displays the last comment (if any) with each post on the home page
- Links to normal view instead of using pagination. (In normal view, pagination is same as always)

6 trackbacks

  1. Av Lag forum av WordPress den 26. February 2008 kl 9:50
  2. Av Sobre WP » Ordena tus posts por comentarios den 4. March 2008 kl 16:56
  3. Av Nuovi Plugins per Wordpress 1 den 5. March 2008 kl 11:58
  4. Av WordPress Plugin Releases for 2/28 | OPOWAE den 6. March 2008 kl 3:25

13 kommentarer

  1. Posta 20. March 2008 kl 18:46 | Permalenke

    favorited this one, bro

  2. Posta 27. March 2008 kl 9:40 | Permalenke

    Kirkns: Glad you liked it!

  3. Posta 21. February 2009 kl 11:54 | Permalenke

    Hello,

    I would like to first thank you for such an innovation! I really needed it.
    I just had a question, if I may. I would like the plugin to sort my posts by latest comment, but I would not like it to view the last comment on the front page or anything that wouldn’t show if I wasn’t using the plugin. I just would like it to change the order of posts, and let them show as it is.
    How can I do this?

    Thanks for your time,
    SA

  4. Posta 24. February 2009 kl 23:16 | Permalenke

    You’ll need to edit the plugin file. Near the bottom of the file, comment out the line

    add_filter('the_content','sbc_displayLastComment');

    Add two slashes at the start of the line, like this:

    // add_filter('the_content','sbc_displayLastComment');

  5. Posta 17. March 2009 kl 12:46 | Permalenke

    Nice Plugin, thanks for writing it! But i’m having a problem in Wordpress 2.71 – it only shows many, many Versions of one post. Has anyone already succeded in porting it to WP 2.7? I believe that some comment-tables changed… Thanks again! M

  6. Posta 17. March 2009 kl 16:02 | Permalenke

    As far as I know, no forks(, ports or anything at all, really) exist. I can confirm that the plugin is not tested with 2.7.

    I would love to upgrade the plugin, but I can’t find the time just now. If anyone would like to help, please let me know.

  7. Seregey
    Posta 20. March 2009 kl 9:57 | Permalenke

    Is there any way to make this plugin work at whole blog (not only the main page)?

  8. Posta 20. March 2009 kl 10:24 | Permalenke

    Seregey: Not that I know of, sorry.

  9. Posta 9. April 2009 kl 12:22 | Permalenke

    I’ve got a blog with 2100 entries and 5000 comments: I need this plugin but my blog became so slow! (cpu at 100%, 20 sec to rebuild home page)
    Is there a way to limit all the queries to the last 10 entries and the last last 20 comments?
    Is there any other ways to use this plugin with a large number of posts and comments?

  10. Posta 9. April 2009 kl 18:05 | Permalenke

    Line 42 reads:

    while(have_posts()):

    To limit the plugin to search through the 10 latest posts, change it to:

    while( $postCounter<10 && have_posts() ):

    I’m pretty sure this plugin could be rewritten to scale better, but unfortunately I do not have enough time on my hands. Please let me know if you can use it for something useful!

  11. Bonsak
    Posta 24. June 2009 kl 13:21 | Permalenke

    Hi, I love your plugin. Would it be hard to modify it to also bump edited posts?

    Regards, Bonsak

  12. Posta 24. June 2009 kl 17:49 | Permalenke

    One way would be to add a custom field ‘bumped’, which could be set to the current time when a button is clicked.

  13. Paul Hamon
    Posta 29. June 2009 kl 8:30 | Permalenke

    Love the idea, now… I’m keen on sorting by meta_vale. I’ve using plugin that gives me expiration-date = 1248843600 in the postmeta table.

    my mysql is below average, how do i make this happen? :(

Legg igjen en kommentar

E-postadressa blir aldri vist eller delt. Ytterst nødvendige felter er merka med *

*
*