Skip Navigation

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

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

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Christopher Amirian vor 2 Jahren, 9 Monaten.

Assistiert von: Christopher Amirian.

Author
Artikel
#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: versteckter Link
Example download page: versteckter 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

Sprachen: Englisch (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.

Das Thema „[Geschlossen] Need to pass item(post ID) from one page to another using url parameters.“ ist für neue Antworten geschlossen.