WordPress.org

Forums

Display Authors Widget
Order by post? (7 posts)

  1. TOAAC
    Member
    Posted 2 years ago #

    Hey, i wondered if it could be possible for me to chance the code so that when it lists the authors, it orders them by who had wrote the most post?
    :)
    Thank you for your help.

    http://wordpress.org/extend/plugins/display-authors-widget/

  2. Sami Keijonen
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry I didn't see this question before. I look into this tomorrow.

  3. Sami Keijonen
    Member
    Plugin Author

    Posted 2 years ago #

    Try this one out in your custom plugin or themes functions.php.

    add_filter( 'display_authors_widget_query', 'my_order_by_post_count' );
    
    function my_order_by_post_count( $query_args ) {
    
    	$query_args['order_by'] = 'post_count';
    
    	return $query_args;
    
    }
  4. Miss West Africa
    Member
    Posted 2 years ago #

    Hi. Sorry Im not very cody savy, and your other thread on the order of post count is closed so I have to ask here.

    How do I apply the post count code via the php codes of your plug in files?

  5. Sami Keijonen
    Member
    Plugin Author

    Posted 2 years ago #

    Put it in your custom plugin. You can create your own plugin with this plugin.

    http://wordpress.org/extend/plugins/pluginception/

  6. rgoksu
    Member
    Posted 2 years ago #

    Firstly, Thanks the super plugin...

    i am asking a questions?

    How can i Add author last post title Where under the author name?

  7. Sami Keijonen
    Member
    Plugin Author

    Posted 2 years ago #

    Please open a new topic for new question.

    But it's not gonna be simple, it needs some custom work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Authors Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic