Filter with $$USER$$
-
I am attempting to build a set of “extra information” forms for my WP users. I get basic WP registration and some additional demographics from WooCommerce, but I need more bits of information about the users. I created a table “CompanyContact” from which I want to make a page showing and allow editing the information only pertaining to the logged-in user. I was able to get the WP user_login to populate a page I’ve set up in the Data Designer, with $$USER$$ as the default value. I can’t seem to get the WHERE clause correct, however. If I enter user_login=$$user$$ to the WHERE clause field on the page, I get no records. If I leave it blank, I see all the records I put in to test. If I use text in quotes of an actual user login value, in place of the $$USER$$, it produces the filtered records. Any suggestions how to get this WHERE clause correct would be much appreciated. Also, whether and what kind of link there should be between wp_users and CompanyContact.
I would have preferred pulling in the wp_users ID instead of the user_login value, but I can work with it.
The page I need help with: [log in to see the link]
- The topic ‘Filter with $$USER$$’ is closed to new replies.