WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts Widget Extended
[resolved] Ascending Date Modification (3 posts)

  1. peaforabrain
    Member
    Posted 11 months ago #

    I am trying to modify the function in order to enable the posts to display in date ascending. In widget-recent-posts-extended.php, I have tried this;

    $args = array(
    				'numberposts' => $limit,
    				'cat' => $cat,
                                    'orderby'=>'post_date',
                                    'order'=>'ASC',
    				'post_type' => $post_type
    			);

    This does not work. Can you tell me how I can make this possible?

    Thanks

    http://wordpress.org/plugins/recent-posts-widget-extended/

  2. Satrya
    Member
    Plugin Author

    Posted 11 months ago #

    Hmmm.. that's should work http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    After you changed some code, please re-save the widget

  3. Satrya
    Member
    Plugin Author

    Posted 10 months ago #

    please update to 0.8, you can see the option for the Order

Reply

You must log in to post.

About this Plugin

About this Topic