Showing the User an Editable Record
-
I set up a relation between record and wp user. Now i would like to show the user an editable record. However the supplied code
echo do_shortcode('[pdb_record record_id="' . Participants_Db::get_record_id_by_term('user_login', $current_user->user_login, true) . '"]');
returns a no record found while i am logged in as the ‘record’ user.Adding this code
$current_user = wp_get_current_user(); echo do_shortcode('[pdb_list filter="user_login=' . $current_user->user_login . '"]');
does work correctly and shows a list of the user record.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Showing the User an Editable Record’ is closed to new replies.