描述
Query and display a list of WordPress users by role using a WP_User_Query and Ajax Load More.
Shortcode Parameters
The following Ajax Load More shortcode parameters are available when the Advanced Custom Fields extension is activated.
- users – Enable compatibility with Users. (true/false)
- users_role – The user role to display.
- users_include – Show specific users.
- users_exclude – Exclude specific users.
- users_per_page – The number of users to display with each query.
- users_order – The order of the displayed users.
- users_orderby – Sort retrieved users by parameter.
Example Shortcode
[ajax_load_more users="true" users_role="Subscriber" users_per_page="2"]
安裝
Uploading in WordPress Dashboard
- Navigate to the ‘Add New’ in the plugins dashboard
- Navigate to the ‘Upload’ area
- Select
ajax-load-more-for-users.zip
from your computer - Click ‘Install Now’
- Activate the plugin in the Plugin dashboard
Using FTP
- Download
ajax-load-more-users.zip
. - Extract the
ajax-load-more-for-users
directory to your computer. - Upload the
ajax-load-more-for-users
directory to the/wp-content/plugins/
directory. - Ensure Ajax Load More is installed prior to activating the plugin.
- Activate the plugin in the WP plugin dashboard.
評價
There are no reviews for this plugin.
貢獻者及開發者
修改日誌
1.1 – June 11, 2023
- UPDATE: Updated to add compatibility with Cache Add-on 2.0 and Ajax Load More 6.0.
1.0 – January 13, 2023
- Initial release.