Sauter la navigation

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

This support ticket is created Il y a 2 années et 11 mois. 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.

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 2 années et 11 mois.

Assisté par: Christopher Amirian.

Auteur
Publications
#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: lien caché
Example download page: lien caché

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

Les langues: Anglais (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.

Le sujet ‘[Fermé] Need to pass item(post ID) from one page to another using url parameters.’ est fermé à de nouvelles réponses.