Views is a WordPress plugin that lets you easily design the display of single pages using content templates. You can also include any field belonging to the content in your templates, without writing PHP code.
When you ask for help or report issues, make sure to tell us what you have created so far and what you want to achieve.
Viewing 15 topics - 2,341 through 2,355 (of 3,942 total)
Problem: I would like to use WPBakery Page Builder Grid Builder to design the output of a View.
Solution: There is not currently an integration between WPBakery Page Builder Grid Builder and Views, but you could use WPBakery to design a Content Template and insert it in a View's Loop Output.
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
*** add the first column code here and replace the comment with your wpv-post-body shortcode ***
[wpv-item index=other]
*** add the inner column code here and replace the comment with your wpv-post-body shortcode ***
[wpv-item index=4]
*** add the last column code here and replace the comment with your wpv-post-body shortcode ***
[wpv-item index=pad]
*** add the inner column code here but do NOT include the wpv-post-body shortcode ***
[wpv-item index=pad-last]
*** add the last column code here but do NOT include the wpv-post-body shortcode ***
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
Problem: I have a View included in an Ubermenu menu. When I apply random sort order, some of the page content disappears. Then if I refresh the page, the page content reappears. I am using Litespeed server, and this problem never happened on my previous nginx server.
Solution: I'm unable to replicate the problem locally on my own PHP environment, so it would seem that the issue is related to the Litespeed environment. Disabling random order is probably the best solution for now.
Problem: How can I create a conditional that uses an if / else logical structure?
Solution: While our conditionals do not support the "ELSE" operator, we do offer an option to negate the conditional evaluation using evaluate="false".
Problem: I have a CRED form that creates new posts. When the form is submitted I would like to send a notification to the author of the custom post where the form is displayed, not the author of the post being created by CRED.
Solution: Add a hidden generic field to the CRED form and set the value to be the author's email address:
Problem:
No option to insert custom taxonomy term field
Solution:
At the moment, you can display term fields on a View listing terms and on a term archive page.
So, if you want to display term fields related to term attached to your post, you need to create taxonomy view and filter it by the term slug or current term in loop and add this taxonomy view as child view to your post view's loop output editor.