Top Authors

Top Authors

توسط

Top authors allows yoy to list your top authors with plenty of options. You can set the following in each widget:

  • Widget title
  • Roles to exclude
  • Post types to include
  • Authors to show
  • 4 Preset display templates
  • Custom display template that allows you to create a completely custom structure and modify the output before and after the list.
  • Archive (category/tag/taxonomy) specific author lists

For a more detailed description of how you can set up custom author lists take a look at the other notes section. The plugin also has some developer friendly features, take a look at the other notes section for more.

Thanks

Usage

Most of the options for the plugin are self explanatory, I thought I’d highlight the archive specific authors and the display template.

If Archive specific authors is checked the plugin will handle authors differently on category, tag and taxonomy archive pages. It will narrow the posts down to only those in the given archive. Practically this means the following:

Say John wrote 10 posts on the website and Jill wrote 5. On normal pages John would be listed first, Jull would be listed second. However, John wrote 3 posts in the “Food” category while Jill wrote 4. On the archive page for the “Food” category – if Archive specific authors is checked – Jill will be shown first with 4 posts and John second with 3.

When you select “Custom Structure” as the preset display you should see three new fields: Display Template, Before List and After List. These fields can be used to control the HTML display of your authors. To make sure you can use the data retireved by the widget I’ve added placeholders which will be replaced by real data:

  • %posts_url%: The URL to the user’s post archive page
  • %website_url%: The URL to the user’s website
  • %gravatar_SIZE%: The gravatar of the user at the given size. For example, to display a 50px Gravatar your would use %gravatar_50%
  • %firstname%: The user’s first name
  • %lastname%: The user’s last name
  • %displayname%: The user’s display name
  • %username%: The user’s username
  • %post_count%: Number of posts
  • %meta_FIELD%: Displays the given meta field. If you store a user’s Twitter name in the ‘twitter’ meta field you could use %meta_twitter% to display it.

As of 1.0.9 there is also a custom ID field. This is for advanced use, mainly for developers. It allows for custom CSS stylings and even custom queries on a widget-to-widget basis.

For Developers

Currently there are three filters you can use to control the options available in the widget.

  • ta/usable_roles allows you to change the roles that can be selected. It should return an array of roles in the form of slug=>name
  • ta/usable_opst_types allows you to change the post_types that can be selected. It should return an array of post type objects
  • ta/post_query allows you to modify the arguments of the WP_Query which retrieves the posts that we look up the authors for. Modify the arguments if you want to force category-specific top authors on single post pages, or other similar uses

Automatic Installation

Installing this plugin automatically is the easiest option. You can install the plugin automatically by going to the plugins section in WordPress and clicking Add New. Type Top Authors” in the search bar and install the plugin by clicking the Install Now button.

Manual Installation

To manually install the plugin you’ll need to download the plugin to your computer and upload it to your server via FTP or another method. The plugin needs to be extracted in the wp-content/plugins folder. Once done you should be able to activate it as usual.

If you are having trouble, take a look at the Managing Plugins section in the WordPress Codex, it has more information on this topic.

سوالات متداول

پرسش و پاسخی برای این آیتم موجود نیست.
×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
★★★★★
★★★★★
4.7 /5 (6 نظر)

قیمت:

رایگان

نگارش

آخرین انتشار

20 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

100+

نگارش وردپرس

وردپرس 3.5.0+

تست شده از نسخه

وردپرس 4.2.39

نگارش PHP

-

نسخه ها

0 نسخه