mercredi 24 février 2021

How to reorder the results of wordpress shortcode?

I'm currently working on a website that used the DynamicUserDirectory plugin, and it's shortcode displays a search bar followed by several divs containing the user information.

What I want to do is randomize the order of the users, and editing the plugin itself probably isn't the best way because it would get overwritten during an update.

Is there any way to write my own shortcode function that stores the results of the user directory shortcode, reorders it, then returns the new content? I'm open to all suggestions.




Aucun commentaire:

Enregistrer un commentaire