Skip Navigation

[Resolved] pass value of a post:custom field thru to next page as a hidden parameter

This thread is resolved. Here is a description of the problem and solution.

Problem:
pass value of a post:custom field thru to next page as a hidden parameter

Solution:
Toolset uses the WordPress standard to store the custom fields. The custom post type custom fields will be saved to postmeta table.

You will have to check how you can get the custom field value either using the get_post_meta() function but to get the custom field value you will require the post ID. You have to find how you will pass the post ID so that based on the passed post ID you can get any custom field value using get_post_meta() function based on the passed post ID.

Relevant Documentation:

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by brendaT-2 3 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2261967

I have a custom post type: Job Seekers.
People (A) looking for work can fill out the "Job Seeker'" form with their information, including qualifications, experience, location, location, name, email, phone and create a post. All details are saved in custom fields.

I have created a template (jobseeker-single) to display MOST of the info - but I do not display the name, email, phone of people A because of privacy.

People (B) looking for candidates can search all job seekers and use filters to match.
The jobseeker-single screen also has a "contact candidate" button that links to a page containing a formidable form.
The form asks for their (B) Name, Company, and a message for the candidate. I can configure the form submit button to send an email to the candidate with the contents of the form. (No problem with formibable)
This way, the People B don't have direct contact with people A.
People A are sent People B's info and can contact them if they are interested in the opportunity

To do this, I must pass the custom field 'emailaddress' (A's email) contained in the custom post, thru to the page containing the form.
It will then be used in the formidable action: send-email-to-candidate.
But it has to be secret. ie it cannot be passed in the URL, or for People B to see in any way.

I think some of this question is plain wordpress question, but because it is a Toolset custom post & custom field, I would like to ask you. I hope you can help

The link to my site?
Staging site as before: hidden link.
You should still have log in details from previous question last week, if you need them

#2262431

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset uses the WordPress standard to store the custom fields. The custom post type custom fields will be saved to postmeta table.

You will have to check how you can get the custom field value either using the get_post_meta() function but to get the custom field value you will require the post ID. You have to find how you will pass the post ID so that based on the passed post ID you can get any custom field value using get_post_meta() function based on the passed post ID.

#2262489

My issue is resolved now. Thank you!