Views is a WordPress plugin that lets you easily display content on your website's front-end in any way you choose.
Views User Guides include detailed documentation for creating lists of content, templates for content and archive page and also explain how to create parametric searches for any content type.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 3,766 through 3,780 (of 3,852 total)
Problem:
The user is following this tutorial to create a comparison page https://www.youtube.com/watch?v=oSuY4QF812s
When he selects more than 2 posts, the view works as expected. When he selected one post or none, the view displays all the posts.
Solution:
We'll need to implement a custom code that will check how many posts are passed to the comparison page. Then we can conditionally display the comparison view or a message.
This a sample code for the shortcode:
The shortcode needs to be registered in Toolset->Settings->Front-end Content to be used in conditions.
Then we can display a view or a message, like this:
[wpv-conditional if="( [wpv-search-term param='post_ids'] ne '' )"][wpv-view name="scholen-vergelijken-po"][/wpv-conditional]
[wpv-conditional if="( [wpv-search-term param='post_ids'] ne '' )" evaluate="false"]You will need to select at least two posts to compare[/wpv-conditional]
But i need made lesson 'private' (only teacher can view) by checkbox.
For example i have 10 lesson but one lesson as private - i check in checkbox "for teacher" and when guest or other user role show lesson archive they see 9 lesson, private lesson not shown.
Solution:
You might consider other workaround, for example, create another post type "Teacher only lessons", use Access to setup the limitation to this post type, so other user role won't be able to access posts of post type "Teacher only lessons".
Solution:
When you set your page to use the Elementor, you should not assign the content template you created using the Views.
When I edit your home page, I see that user have assigned the content template "PAGE Block", so I set the content template to "None" for the home page.
Problem:
The user would like to order the WooCommercearchive template in several fields, including the price.
Solution:
Make sure that the default WooCommerce order is disabled in Toolset->WooCommerce Views->Frontend Sorting. Check this screenshot http://prntscr.com/uizqgf
Problem:
The user is using nested conditional shortcodes inside of an Elementor text widget. The conditions are breaking.
Solution:
The Elementor Text Widget is an external 3rd party environment, and we can't guarantee if the nested shortcodes will work in that context.
Put the shortcodes in an unassigned content template, then include the content template with a shortcode:
[wpv-post-body view_template="Name or slug of the content template here"]