Author Box – Limit number of users returned

Posted in: Newsmag
Post count: 44

Hi Again,

My site has a lot of authors and all of them are showing up in the sidebar when I add a ‘Author Box’. I saw the td_block_authors class and noticed there is no ‘number’ parameter added to the get_users args. Can you please add it to the core and maybe make it part of the widget setting?

Post count: 44

If you can add the ‘role’ argument too as a setting that would be awesome. May be as a select box using wp_dropdown_roles function?

Thanks a lot for your help

Post count: 6535

Hi

If you want just some authors to appear on your page, go to users section in WordPress, click the one you want, like here http://screencast.com/t/ahcHouQQURgL after that get the id http://screencast.com/t/r3wr7r3Wvx and paste it in the widget author box like here http://screencast.com/t/sjU8OR2asXDv
If you want, you can add more id’s like in this example http://screencast.com/t/W4TjaAxvHPI
We added your suggestion on our list, thank you very much for that.

Thanks!

  • This reply was modified 11 years by Andrei L..
  • This reply was modified 11 years by Andrei L..
Post count: 44

Hi @Andrei,
Thanks for replying.
If I want the top 5 authors out of all my registered users and sort them according to post_count, then that won’t we possible with the method you have suggested above.

Post count: 6535

Hi

We are sorry but the theme doesn’t support something like that, but i’we added this on the issue tracker. We have over 250 feature request and we have to pick very carefully what we implement.

Thanks

  • This reply was modified 11 years by Andrei L..
Post count: 44

I understand you have a lot of requests and implementing each is not possible. For now, I have just edited td_block_authors.php and added $get_users_array['number'] = '5'; in the code 🙂

Post count: 6535

HI

Thanks for the suggestion!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.