i am trying to create a membership directory that will display all the user which would be trigger by a shortcode based on the user ID.
I am not sure what is wrong with the code I did
my_members = get_the_author_meta('ID'); while ( !empty (my_members) ) : echo do_shortcode('[li_profile id='. my_members . ']'); endwhile:
I am not asking how to create the shortcode because the shortcode works by default doing something like this on a regular page [li_profile id=1] to display user data with User ID 1
the loop I need would be to loop the shortcode like below
until there are user ID available