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 - 871 through 885 (of 896 total)
The issue here is that the user wanted to know if it was possible to assign posts from a CPT to different content templates.
Solution:
Yes this is possible as there is a content template section on the posts when editing the posts where you can select the content template that should be used for that post.
Display complete different Views wordpress archive for mobile user.
Solution:
Use filter hook "wpv_filter_force_wordpress_archive" to trigger a custom PHP function, check if it is a mobile user, then return different wordpress archive ID.
Problem: I have a custom post type called Companies with a repeating field group (RFG) called Company Locations. One of the fields in that RFG is an address field. On the Companies WordPress Archive page, I would like to show a Map with Markers for of all the Company Location posts. I would like to filter the Companies archive by a field in the RFG, and I would like to show a custom field from the parent Company in the marker popup.
Solution: It's not currently possible to filter a View of a CPT by fields on its RFGs.
To access custom fields from the Company post in a View of the RFG, use the item attribute in the shortcode with the syntax "@relationship-slug.parent".
Problem:
Views 2.6.2 changed how empty default options are added to Views filters where the options are manually set, adding an empty option even if one already exists.
Solution:
This was an unintended change which will be reverted in the next version of Views.
Problem: I would like to use a custom search View to display the search filters, then redirect the User to an archive page where the search results can be seen.
Solution: It's not currently possible to split up the search filters and results in a WordPress Archive. Use a custom search View or custom code.
Problem: I want to design an Archive layout which will apply to all pages. So on the main Member Profiles archive page, a user can click on one of the taxonomy terms and see the same archive layout for all members who have that taxonomy term selected. And finally, once it is designed, I want to use a shortcode to place the archive view in my pages.
Solution:
- WordPress automatically generates archives for custom post types and for custom taxonomy terms. You can customize the archive pages using Toolset's WordPress Archives feature.
- A Toolset WordPress Archive can be applied to a custom post type archive, and also to a taxonomy archive. So yes, you can create one WordPress Archive and use it for both.
- You can insert taxonomy term links in each post in the archive using the wpv-post-taxonomy shortcode. In the Loop Editor section, you will have the ability to insert the shortcode in the wpv-loop tags. When a User clicks one of these terms they will be redirected to the corresponding term archive.
- WordPress Archives cannot be inserted with a shortcode, because they are designed to be displayed only on archive pages. Since these are generated automatically by WordPress, no shortcode is provided. If you want to create similar lists of posts and display them on other parts of your site besides the archive pages, you can create filtered Views that return the same results. You can copy the code from the Loop of your WordPress Archive and apply it to the Loop of your filtered View.