Skip Navigation

[Resolved] Is it possible to carry a post type to a second page?

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

Problem:

How can I carry over post data to another URL?

Solution:

Instead of doing that, use the post relation feature:

https://toolset.com/course-lesson/what-are-post-relationships-and-how-they-work/

Then you can show the data in the related post

Relevant Documentation:

https://toolset.com/course-lesson/displaying-related-posts/

This support ticket is created 2 years, 1 month 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 2 replies, has 2 voices.

Last updated by claudiaP 2 years ago.

Assisted by: Christopher Amirian.

Author
Posts
#2503931

I've created the post type: 'locations'.
Locations has a custom field that contains a URL 'phreesia-url'.

What I'd like to do is when a user clicks a 'booking' button on a given location page I'd like to open a second page (or popup) and have the corresponding 'phreesia-url' displayed as an iframe on the second page. Is it possible to do this with Toolset? How do I carry the url to a 2nd page (if possible)?

Or do I have to open the iframe on the locations page in order to get the correct url to show?

Thanks for your help.

#2504809

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I think the iFrame method is not suitable.

What you can do with the built-in Toolset options is to create a relationship between the Booking and Location post types using the method below:

https://toolset.com/course-lesson/what-are-post-relationships-and-how-they-work/

Then, depending on the way you created the relationship you can display the fields related to each other using the method below:

https://toolset.com/course-lesson/displaying-related-posts/

That way all the details are in your hands.

Thanks.

#2505709

My issue is resolved now. Thank you!