cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

Show popular authors/contributors? #355

Closed kassemz closed 1 year ago

kassemz commented 1 year ago

Is it possible to show popular authors/contributors?

cabrerahector commented 1 year ago

Hi @kassemz,

Possible? Yes, as long as you're familiar with WordPress development in general (or know someone who is) then yes it's possible.

Is it a feature provided out-of-the-box by WordPress Popular Posts? No, because the ability to assign multiple authors / contributors isn't a core WordPress functionality, it's something usually implemented via third-party plugins (eg. Co-Authors by Publishpress). You'd have to add that information (authors/contributors) to your popular posts programmatically, please see How can I use my own HTML markup with your plugin? for more details.

Scratch that, I misread your question. My apologies. The answer is pretty much the same though: it's possible, however -and at the time of writing this- it's not something that WordPress Popular Posts provides out-of-the-box. You'd need to extract the data from the database (link views data with authors, then rank authors accordingly) in order to be able to list your most popular authors / contributors.

If you have any other questions please don't hesitate to ask.

kassemz commented 1 year ago

Hi Héctor,

Thanks for the quick reply!

I didn't mean multiple authors for the same post. I meant popular authors based on posts viewed count. So top author would be the one with the most viewed posts across the site.

In other words, authors with most post views count.

Kassem

On Mon, Mar 6, 2023, 12:10 AM Héctor Cabrera @.***> wrote:

Hi @kassemz https://github.com/kassemz,

Possible? Yes, as long as you're familiar with WordPress development in general (or know someone who is) then yes it's possible.

Is it a feature provided out-of-the-box by WordPress Popular Posts? No, because the ability to assign multiple authors / contributors isn't a core WordPress functionality, it's something usually implemented via third-party plugins (eg. Co-Authors by Publishpress). You'd have to add that information (authors/contributors) to your popular posts programmatically, please see How can I use my own HTML markup with your plugin? https://github.com/cabrerahector/wordpress-popular-posts/wiki/5.-FAQ#how-can-i-use-my-own-html-markup-with-your-plugin for more details.

If you have any other questions please don't hesitate to ask.

— Reply to this email directly, view it on GitHub https://github.com/cabrerahector/wordpress-popular-posts/issues/355#issuecomment-1455222665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3J4XR7YBONCKJ26O3TVVTW2UFONANCNFSM6AAAAAAVQNAYNE . You are receiving this because you were mentioned.Message ID: @.***>

cabrerahector commented 1 year ago

Yeah, I'm sorry about the confusion, I understood what you meant after re-reading your question and then edited my previous comment accordingly.