Skip Navigation

[Closed] Need to pass item(post ID) from one page to another using url parameters.

This support ticket is created 2 years, 9 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.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 2 years, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2303351

So we have business listings setup. We are trying to add a PDF that the user can download, but only after filling out their email. I've created the Post Form with the file upload. We are using Gravity forms to capture the email which can then redirect with url parameters to the download page which has an assigned content template.

The content template is currently displaying the PDF of a static listing using shortcode [types field='pdf-listing' item='1117'][/types]

What I need is the url from the listing to fill in the 1117.

So the flow would be:

-User is on the listing page
-User enters email into form and submits
-User get redirected with url parameter i.e. domain.com/pdf-download-page/?item=%linking page ID%
-User can now click the PDF link to download/view it

Example listing page: hidden link
Example download page: hidden link

I am open to using toolset forms instead.

Thank You for your time and please let me know if you need more info.

#2304341

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I am not sure if it is possible with the Gravity forms, but if you have a relationship between your custom post types then you can use the Child Post Link functionality and the system will add a proper parameter.

For more information:

https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/

Thank you.

The topic ‘[Closed] Need to pass item(post ID) from one page to another using url parameters.’ is closed to new replies.