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 - 1,966 through 1,980 (of 2,094 total)
The issue here is that the user wanted to hide particular contents from their guest users.
Solution:
This can be done by using our access plugin. I would recommend that you have a look at our access documentation for a guide as there are multiple way to hide contents from a guest. https://toolset.com/documentation/user-guides/access/
Problem: I would like to create a navigation system that shows icons for all the terms in the same hierarchical level. When the User clicks one of the icons, they are redirected to another page with icons for each of the child terms of the current term, and so on.
Solution: Use a combination of a WordPress Archive and a View of child terms to accomplish this navigation system.
- Create a View of this taxonomy. In the popup when you create the new View, choose "show all results".
- Add a term parent Query Filter to this View, where the term parent is set by the current archive.
- Use the Loop Wizard to create an unordered list. Insert the taxonomy archive link in the loop for now, so we can verify everything is working.
- Create a WordPress Archive and assign it to this taxonomy.
- In the Loop Editor area of the WordPress Archive, use the Loop Wizard to create an ordered list. Insert the post title for now.
- Just above the wpv-loop tag, use the Fields and Views button to insert the taxonomy View you created.
- Now go to one of the parent term archive pages and test it out. If the taxonomy is "category" and the parent term slug is "parent-slug", you can go to yoursite.com/category/parent-slug to see the taxonomy archive.
- You should see a list of child term archive links and also a list of posts in the current term. Click one of the child term archive links, and you will go to a similar archive for the grandchild terms.
- Once that is working as expected, you can go back and edit the View of taxonomy terms to show different information for each term, like the custom image field.
I am using this shortcode below: [wpv-post-featured-image]
it is (like expected) displaying the featured image thumbnail to the current post. how would I modify this shortcode to display the featured image thumbnail to the next post instead of the current post?
Problem: I have a repeating field that includes simple text strings. I would like to display the values of that field in alphabetical order.
Solution: It could be complicated if the field accepts HTML, or if special characters or complex fields are considered. If you just want a basic text comparison on a simple Types field, you can add this custom shortcode to your child theme's functions.php file or create a new snippet in Toolset > Settings > Custom Code: