Skip Navigation

[Resolved] How to tell Toolset View Elementor widget to show only content from current post

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

Problem:

I am trying to use a Toolset View as an element in Elementor.

How can I tell the view to use only content from current post?

Solution:

You can use a text/shortcode widget to replace View element.
For example, in your Elementor template, add a text/shortcode widget(element), in this widget content, display view's shortcode with attribute ids="[wpv-post-id]", like this:
[wpv-view ... ids="[wpv-post-id]"]

Relevant Documentation:

This support ticket is created 5 years 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by valterB 5 years ago.

Assisted by: Luo Yang.

Author
Posts
#1426591

Hi, I have a new question regarding how to filter a view to show only content from current post.

Usually I add ids="[wpv-post-id]" to the content template, as described here:
https://toolset.com/forums/topic/hi-how-can-i-filter-a-view-to-show-only-content-from-the-current-post/

Now I am not using a content template, instead trying to use a Toolset View as an element in Elementor.
How can I tell the view to use only content from current post in that situation?

The site is not live yet.

#1427305

Hello,

You can use a text/shortcode widget to replace View element.
For example, in your Elementor template, a text/shortcode widget(element), in this widget content, display view's shortcode with attribute ids="[wpv-post-id]", like this:
[wpv-view ... ids="[wpv-post-id]"]

#1427829

My issue is resolved now. Thank you!