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 - 2,161 through 2,175 (of 2,899 total)
Problem: I have a View of taxonomy terms that displays each term as a link in a grid of results. Google recommends increasing the space between each item so that it is more easily clickable on mobile devices. How can I increase the gap between rows in the View results?
Solution: Use CSS padding applied to a wrapper element around the taxonomy shortcode in the loop to increase the gap between rows.
<div class="tssupp-padding-top-bottom-8px">
Example content: [wpv-taxonomy-link]
</div>
Problem: I would like to create a View of taxonomy terms, but I cannot select a taxonomy in Content Selection.
Solution: The Blocks Editor does not yet support Views of taxonomy terms or Views of Users. Instead, you must use the legacy editor to build these Views and place them in the Block Editor using the wpv-view shortcode.
Problem: I am using a Fields and Text block to display some text, including the post slug. I have set the text-transform property for this block to be "uppercase" but the slug always displays in lowercase.
Solution: It seems that GeneratePress includes some styles for H1 elements that includes the property text-transform: none;, and you would have to override that using custom CSS. Add the CSS class tb-uppercase-override to the Fields and Text block, then add this CSS in the template, an enqueued CSS file, or in Appearance > Customize > Additional CSS:
Problem: I have two post types in a one-to-many post relationship. Artists are the parents, and Paintings are the children. In the Artists post type, I have a checkbox custom field. I would like to create a View of Artist posts that only shows Artists with related Paintings. I would also like to include any Artist where the checkbox is checked.
Solution: To accomplish this without custom code, you need 3 Views:
- #1: View of Artists, filtered by checkbox field. Use the legacy Views editor and choose the output type "List with separators". Output the Artists IDs as a comma-separated list.
- #2: View of Artists, filtered by post ID using a shortcode attribute "ids". Design the output as you would like to see on the front-end of the site.
- #3: View of Paintings with no filters. Use the legacy Views editor and choose the output type "List with separators". In the loop, include the post ID of the parent Artist post.
Insert View #2 in your template or page using a shortcode. In the ids attribute, place View #1 and View #3.