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 - 2,086 through 2,100 (of 2,121 total)
Problem:
Create a quiz with multiple choice questions
Solution:
You should create post types to store your questions and answers where answers should be the child of questions having one custom field that denotes
Problem:
How to use the "Custom Product Boxes" plugin with custom product pages created with Toolset?
Solution:
The Custom Product Box plugin needs to use the standard WooCommerce product template to function correctly, and not the WooCommerce Views template used for creating custom product designs.
There is a workaround described in the main thread below to be able to switch between each depending on whether the product is a normal product or a Custom Product Box product.
With The Events Calendar Pro plugin, in the content template of single event post, display the related "Venue" post information.
Solution:
The "Events Calendar Pro" plugin is using a hidden custom field "_EventVenueID" to store the Venue post ID, you can use it to display the "Venue" post information, see the solution in details:
Problem: I have a table-style View that displays several columns of custom field values. I would like to use a conditional that hides the value in a specific column if the value is identical to the same column in a previous row.
Solution: When the loop is rendered, each iteration has no reference to a previous or future iteration. That means it's not possible to set up a conditional that compares a value from one iteration to a value in another iteration. Instead, you would have to do this with custom CSS and JavaScript. For example, add a custom class to each system-cf cell, and a wrapper span tag like this:
However his link was being rendered multiple times even though it should only be there once. Solution:
This was actually caused by the [wpv-post-taxonomy type="age-category" separator=" "] Shortcodes as it is rendering the taxonomy terms as links which breaks the wrapping a tag.
To resolve this just change the format of the taxonomy output from a link to just the name.
[wpv-post-taxonomy type="age-category" separator=" " format='name']