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 - 961 through 975 (of 1,006 total)
Note that the date archive will not include custom post types by default. You would need to create a custom archive and specify the post types to be included.
Problem:
The issue here was that the user had some custom javascript that he wanted to add to his Archive pages.
Solution:
To add custom javascript to your Custom Archive or Views all you need to do is to edit that view and then go to the JS editor on that view and just add the Javascript there.
Problem:
Two pages an image does not have the same height as the others. Solution:
Fix this issue by adding following CSS in your theme’s style.css file or custom CSS file.
have a custom archive type and I'm adapting it. I wanted the article layout to match the theme and I managed to do that.
However, I'm having a problem with the "heart" (like) under each article.
The "heart" comes "red" when I like the post post, as it should. However, if I refresh the page it reverts to "unliked" mode - white heart. I have attached a screenshot of it.
I have this html code in the page which I have copied from the theme and just adding the custom elements that I needed.
Solution:
It needs some custom PHP codes, for example you can try these:
1) Add below codes into your theme/functions.php:
Problem: I am unable to assign a Layout to the Products Archive when I have WooCommerce, Types, Views, Layouts, WooCommerce Views active with the Genesis framework and a child theme. I have selected the WooCommerce Views template for Product Archives in Toolset > WooCommerce Views.
Solution: Activate the Genesis Connect for WooCommerce plugin and update to the latest versions of Genesis and WooCommerce.
Problem: I have created a WordPress Archive for a custom taxonomy. On that page, I have inserted a shortcode to display the current term, but multiple terms are shown.
Solution: Make sure to use wpv-taxonomy-archive and not wpv-post-taxonomy. These shortcodes work differently, and only the wpv-taxonomy archive shortcode will provide the correct term information on a WordPress Archive.
The issue here was that the customer was using the views conditional shortcode on his custom woocommerce shop page, however the page was returning blank.
Solution:
The issue was not a specific conclusion to what this issue was as the client was building on a test server and when moved to live the issue was not there. I would suspect that some server configuration was the cause of this . I would suggest checking the php logs for the server.
The issue here is that the user wanted to conditionally display some images based on the taxonomy attached to a post on an Archive layout.
Solution:
It won't be exactly possible to do with the taxonomy archive, with the general archive like that. Instead it is possible on the individual term archive.
The reason is because you are going to need to know individually which term is attached to the current post being listed. So in the archive it won't be possible.
It is possible to do with a multiple view setup. Where at first you will need a view to first list the taxonomy terms in that taxonomy. Then a second view to list all the posts that belongs to each of those taxonomies.