Using Participants Database with WordPress Users
-
I have installed the Insert PHP plugin, and have set up a page that is only accessible to logged in users. On this page I have tried the following code:
[insert_php] echo do_shortcode('[pdb_record record_id="' . Participants_Db::get_record_id_by_term('user_login', $current_user->user_login, true) . '"]'); [/insert_php]
based on https://xnau.com/using-participants-database-with-wordpress-users/#respond but I get a blank page as a result.
I also tried adding the $current_user = wp_get_current_user(); string as such:
[insert_php] $current_user = wp_get_current_user(); echo do_shortcode('[pdb_record record_id="' . Participants_Db::get_record_id_by_term('user_login', $current_user->user_login, true) . '"]'); [/insert_php]
with no different results. Any idea why this would not be functioning? I’m pulling my hair trying to figure out what I am doing wrong. I do not really know php, but rather am just copying and pasting exactly what I see.
Thanks for any help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Using Participants Database with WordPress Users’ is closed to new replies.