Skip Navigation

[Resolved] Want to show single post inside a modal

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

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1593513

I am trying to show a single post inside of a pop up modal.

Towards the bottom of the page here:
hidden link

I have an image if you hover over it and click it a modal pops up. This is how I want it to work, however the way it is working now is I just copied the html from the post page. I want to be able to use a shortcode or similar to call the post type so that if I need to make changes to the post I can and it will reflect automatically in the modal.

I am using Layouts and Types to make the posts.

Post I want rendered in modal is here for reference:
hidden link

Thanks

#1594329

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Tooslet does not offer popup using which you can display the content on the popup when you click on the image.

I suggest you should check any use any of suitable plugins that suits your requirements.
=> https://wordpress.org/plugins/search/popup+maker/

#1594369

The pop up is not the issue. I am trying to place the contents of a post in the modal. Is there a way to display the contents of a single post created with layouts? Perhaps with a shortcode?

#1595209

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes, what you should do is create a content template and design it as per your need and add content to it.

you can create a new content template from:
=> Toolset => Content Templates and do not assign the content template to any post type

Once you successfully design your content template, you can display it using the shortcode:

[wpv-post-body view_template="your-contant-template-slug"]

Where:
- Replace your-contant-template-slug with original content template slug

More info:
=> https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-post-body

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.