Shortcode to extract the entryID?

By: Roy Jensen | Asked: 10/18/2025
ForumsCategory: General questionsShortcode to extract the entryID?
Roy Jensen asked 3 weeks ago

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?

2 Answers
Victor Font Staff answered 3 weeks ago

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.

Victor Font
Staff replied 3 weeks ago

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.

Bobby Clapp Staff answered 3 weeks ago

Actually, I believe what you're looking for is [get param=entry], presuming form B is on a page that can reference the entry value from the URL.

Victor Font
Staff replied 3 weeks ago

Smart man, Bobby! I guess I over engineered my answer, LOL!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right