Plugin Author
WPKube
(@wpkube)
Hi @litbes
Thanks, happy to hear you like it.
orderby="post_count" order="DESC"
Full shortcode:
[authors_list show_bio="no" post_types="products,post,blog,book__reviews" avatar_size="200" orderby="post_count" order="DESC"]
Thread Starter
litbes
(@litbes)
Thank you so much for your quick response!
Unfortunately, this code didn’t work: everything remains as before: https://litbes.com/authors/
Plugin Author
WPKube
(@wpkube)
Hi @litbes
The order is actually by post_count and descending by default, so you’re right, setting those new values is the same as without them.
A WordPress function handles that specific order. I checked the WordPress code to see what might be the issue and I think it’s because it only checks posts, not custom post types.
How many regular posts does Pavel have? If it’s 1 then we found the issue. Let me know if that’s the case so I can see if there’s something that can be done about it.
Thread Starter
litbes
(@litbes)
Yes, you are right – Pavel has 5 publications:
1 – “post” type
1 – custom “blog” type
3 – books (custom “products” type)
Can something be done about it?
Plugin Author
WPKube
(@wpkube)
Hi @litbes
I don’t see any WordPress filters/actions in that are that would allow us to hook in there and modify that behavior.
So a different approach is needed.
We’ll figure out a solution and release an update on Monday. Is that ok?
Thread Starter
litbes
(@litbes)
Yes, that would be great!
You are one of the few developers who solve various tasks so quickly at the request of users. @wpkube, thank you very much!
Plugin Author
WPKube
(@wpkube)
You’re welcome and thank you.
Thread Starter
litbes
(@litbes)
We’ll figure out a solution and release an update on Monday. Is that ok?
@wpkube, can I clarify: what kind of Monday was it? Is it this year?
-
This reply was modified 5 years, 5 months ago by
litbes.
Plugin Author
WPKube
(@wpkube)
Things don’t always go as planned, I apologize, this is a free plugin with free support and no monetization, one of many, todo lists are large, tasks sometimes take longer to complete than anticipated, schedules shift around.
There’s really no need to be sarcastic. A simple “any updates on this?” would suffice.
It’s currently set on the tasks for today, unless the tasks planned before it take longer than expected, it will be handled today.
Thread Starter
litbes
(@litbes)
I’m sorry, @wpkube, I didn’t mean to offend you.
Your plugin is the best solution I’ve found on WordPress. I am ready to transfer the money as compensation for your unexpected moral damage.
I offer my deepest apologies. Merry Christmas!
Plugin Author
WPKube
(@wpkube)
Hi @litbes
The update is released.
Set the orderby parameter to “all_post_count”. Example:
[authors_list show_bio="no" post_types="products,post,blog,book__reviews" avatar_size="200" orderby="all_post_count"]
When “orderby” is set to “all_post_count” it will use the post count from the post types defined in the “post_types” parameter.
Merry Christmas, happy holidays.
Thread Starter
litbes
(@litbes)
Everything works perfectly!
Thank you so much for your help and Merry Christmas! You are the best!
Plugin Author
WPKube
(@wpkube)
Happy to hear the fix worked out.
You’re welcome and thank you, Merry Christmas.