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,716 through 2,730 (of 2,780 total)
Problem: I would like to use the contents of a custom field as the "href" attribute of a link, and I would like to use the contents of a separate custom field as the text for the link.
Solution: Build your link tag markup manually like so:
Problem:
The problem here was that the customer wanted to know if he could design individual templates per taxonomy category.
Solution:
This is actually possible with some conditional code.
So we are on a Taxonomy archive let say the taxonomy is Country and the country has taxonomy terms with the names of various cities.
So its like this.
Spain
-Madrid
-Barcelona
-Taledo
So you want each city to display differently. This is how we do it.
[wpv-conditional if="( '[wpv-taxonomy-slug]' eq 'madrid') "]
Design for madrid archive.
[/wpv-conditional]
[wpv-conditional if="( '[wpv-taxonomy-slug]' eq 'barcelona') "]
Design for barcelona archive.
[/wpv-conditional]