Skip Navigation

[Resolved] How can i show a content template for a specific post by id or url by shortcode

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

Problem: I would like to show a Content Template applied to a specific post by ID, using a shortcode.

Solution: It's possible to display a Content Template using the syntax you described with post IDs:

[wpv-post-body view_template="personalidade-insert" id="12345"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by BrunoJ506 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1161693

How can i show a content template for a specific post by id or url using a shortcode?

I want to do something like this [wpv-post-body view_template="personalidade-insert" id="url_or_id"]

Is it possible? How?

#1162463

Hi, yes it's possible to display a Content Template using the syntax you described with post IDs:

[wpv-post-body view_template="personalidade-insert" id="12345"]

Other options for this shortcode are described in the Views Shortcodes documentation here: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body

Let me know if you have questions about that.

#1162807

My issue is resolved now. Thank you!