Views is a WordPress plugin that lets you easily customize the standard WordPress listing pages using WordPress archives. You can redesign any WordPress archive, including custom post archives, taxonomy archives, author archives and search results.
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 - 271 through 285 (of 387 total)
Problem: What is the difference between Views and WP Archives?
Solution:
The main difference between Views and WP Archives is that a View can be placed in any arbitrary location on your site. It can be placed in a post, or in a Page, or in a template, or in an archive, etc. WP Archives cannot be placed in arbitrary locations, they are assigned to specific archive URLs that are designated automatically by WordPress. By default, WordPress creates archive URLs that include lists of posts. Archives are generated and displayed by WordPress automatically for post types, taxonomy terms, author archives, post archives by year/month/date, etc. WordPress automatically displays those archives for you at a standardized URL.
A Toolset WordPress Archive must be displayed at a URL designated by WordPress for displaying an archive.
There are a few technical differences between WP Archives and Views as well. These two differences are probably the most important:
- WP Archives are filtered automatically depending on the type of archive. For example, a taxonomy WP Archive for a custom taxonomy term "book" will be filtered by the term "book" automatically, you do not need to add such a taxonomy term filter to the WP Archive. All the posts displayed in that archive will have the term "book" applied. However, if you create a View of the same post type and place it inside the term WP Archive, the View results will not be automatically filtered by the "book" term. All posts would be displayed in that View, and you would have to add that term filter manually to only show posts with the term "book" in the View results.
- Distance filters are not currently available for WP Archives. Distance filters only work in Views that display posts of some type
Problem:
The user is unable to choose the dynamic source for some fields in the archive template.
Solution:
It turned out that the archive template has some query filters, and no posts were matching it. So, the Block Editor could not find a post to preview and thus could not offer dynamic sources for it.
Then you can use shortcodes inside of it because, currently, Toolset blocks do not support archive data yet.
You can use the wpv-taxonomy-archive shortcode, the wpv-taxonomy-field shortcode, or other wpv-taxnomy-* shortcodes. Read more about the available shortcodes here