WordPress.org

Ready to get started?Download WordPress

Forums

Mingle Forum
[mingle forum] Newest post on top (4 posts)

  1. daand
    Member
    Posted 2 years ago #

    How can i put the newest post in the mingle forum plugin on top automaticly?

    Thanks, Daan

    http://wordpress.org/extend/plugins/mingle-forum/

  2. daand
    Member
    Posted 2 years ago #

    Nobody?

  3. engelking
    Member
    Posted 2 years ago #

    I've been looking for a solution too. Have you had any luck?

  4. Art of Pic
    Member
    Posted 2 years ago #

    open wpf.class.php
    search for (from line 464)

    function get_posts($thread_id){
    		global $wpdb;
    		$start = $this->curr_page*$this->opt['forum_posts_per_page'];
    		$end = $this->opt['forum_posts_per_page'];
    		$limit = "$start, $end";
    		if($thread_id){
    			$posts = $wpdb->get_results("SELECT * FROM $this->t_posts WHERE parent_id = $thread_id ORDER BY <code>date</code> ASC LIMIT $limit");
    			return $posts;
    		}else{
    			return false;
    		}
    	}

    replace
    ASC LIMIT
    with
    DESC LIMIT

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic