Hello,
I have little problem because i want to display users by certain role type. And I want this to be automatic, in K elements there are few widgets such as Buddypress Members Carousel, and there are few users type such as:
Active
Newest
Popular
Online
Alphabetical
Random
I would like to extend this to actual roles on site, like Administrator, Keymaster, Suscriber and so on…
The code used in plugin-js-composer/config.php looks like this:
array(
“type” => “dropdown”,
“holder” => “div”,
“class” => “”,
“heading” => __(“Type”),
“param_name” => “type”,
“value” => array(
‘Active’ => ‘active’,
‘Newest’ => ‘newest’,
‘Popular’ => ‘popular’,
‘Online’ => ‘online’,
‘Alphabetical’ => ‘alphabetical’,
‘Keymaser’ => ‘Keymaster’,
‘Random’ => ‘random’
),
“description” => __(“The type of members to display.”)
),
Are there any other ways to put users like Admins in carousel?
Reggards