Saltar navegación

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

This support ticket is created hace 2 años, 11 meses. 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.

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Christopher Amirian hace 2 años, 11 meses.

Asistido por: Christopher Amirian.

Autor
Mensajes
#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: enlace oculto
Example download page: enlace oculto

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

Idiomas: Inglés (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.

El debate ‘[Cerrado] Need to pass item(post ID) from one page to another using url parameters.’ está cerrado y no admite más respuestas.