Form A creates a user profile. A user can create only one profile. A view displays the user profile.
• the user profile URL is https://casp.ca/employer-directory/entry/4220
• 4220 is the entryID of the Detail page of the view
Form B, by the same user, creates a job posting. Form B already pulls the company name and logo from A. I have a hidden field on B that creates a link to the user profile.
• [siteurl]/employer-directory/entry/[what shortcode returns the entryID of A?]
What shortcode returns the entryID of form A?
There's no shortcocde that does this unless you write one your self. You need 2 pieces of information not retrieve a user's registration entry id. You need the form id and the user id, then construct a SQL query to retrieve the result.
There's one other way to accomplish this that you may want to investigate. Save the entry id in the WPUser record when the registration form is entered. You'll be able to retrieve it directly from the user record instead of creating SQL.
Please login or Register to submit your answer