Skip Navigation

[Resolved] Insert Content Template into single instance page using shortcode

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

Problem:

The issue here is that the user wanted to assign a single content template to a post instead of the entire cpt.

Solution:

An explanation along with screenshots can be found below.
https://toolset.com/forums/topic/insert-content-template-into-single-instance-page-using-shortcode/#post-1125590

This support ticket is created 6 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.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ben 6 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1125477

Ben

It is possible to insert a Content Template into a single instance of a page using a shortcode?

I don't want to display it across an entire CPT, just one individual page.

Is this possible?

#1125557

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Thank you for contacting our support forum.

You should be able to do it by using the [wpv-post-body] shortcode and assigning a content template to that shortcode when you are adding it to the page.

Please let me know if this helps.
Thanks.
Shane

#1125587

Ben

Thank you for your reply Shane.

Forgive me of my ignorance, but how would I go about doing this?

#1125590

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-10-11 at 3.05.51 PM.png
Screen Shot 2018-10-11 at 3.02.15 PM.png

Hi Ben,

Also you can assign a single content template to a page. See Screenshot.

Next when you create the content template you have the option to not assign it to any post.
See Screenshot

Please let me know if this clears things up for you.

Thanks,
Shane

#1126302

Ben

Thank you for all the information and suggestions Shane.

Using your suggestion I believe I am able to achieve what I want using:

[wpv-post-body view_template="TEMPLATE NAME"]

Thank you very much again!