A Filtering Problem
-
Basically for simplicity my database might be reduced to the following fields
[user_name][activity][leader_for_activity]The club has 2000 members with about 100 activities available. 75 members are appointed activity leaders and the activity they are responsible for is held in [leader_for_activity]. (I realise that there will be a lot of empty fields). There are actually 10 activity fields [activity_1] to [activity_10] but for simplicity I have just shown just 1 activity field [activity]. The activity leaders have been designated a different role to that of members.
Basically, I would like the activity leaders to be able to see only the members who are enrolled in the activity that they are responsible for. Using the wp_get_current_user() I can get the user_name and use the shortcode
echo do_shortcode(‘[pdb_list filter=”username=Drango” fields=”leader_for_activity”]’);
to get the name of the activity. I now want to list the names of all members who have enrolled in that activity
An ideal list would look like
[Fred Jones] [Backgammon]
…names of all members enrolled on Backgammon here
…
…
…Is there any way I can do this preferably without using Templates?
I hope all that makes sense.
Many Thanks
- The topic ‘A Filtering Problem’ is closed to new replies.