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 - 1,546 through 1,560 (of 1,587 total)
Problem: I have a custom post type that includes taxonomies for problem type and device number. When I'm on that single post, I would like to display a link to another page that contains the results of a custom search View set to respond to a URL parameter.
Solution: Create the View with a taxonomy term filter, set by a URL parameter. Place the View on a custom Page. Use the URL parameter to test out the results and confirm it's working as expected. On the single post template, insert a text editor element and create a link that points to the correct URL using Toolset's shortcodes.
<a href="/moria-problems-for-devices/?devicenum=[wpv-post-taxonomy type='device-number' format='slug']">Problems for this Device</a>
Problem:
My HTML Conditional does not work, even though visually the syntax is correct and it should expectedly work.
This is the syntax example:
[wpv–conditional if="( '[wpv-post-taxonomy type='related' format='slug']' ne '' )"] NOTHING[/wpv–conditional]
Solution:
Sometimes it can happen that unexpected hidden formatted text gets copied when you copy the code from a Webpage.
It's a good idea to convert into plain text before inserting into the editors if you experience unexplainable failure of HTML conditions (and other HTML) in general.
Often it's good to just generate the conditions using the GUI if possible.
That'll ensure a pure output that is generated with bare text.
Problem: In desktop screens my site is displayed with two columns. In mobile, it is shown in one column. However, I would like to reorganize the order of content in that column.
Solution: Change your markup structure so the similar events section is shown below the two columns. Use CSS to clear the floated columns.
Problem: I would like to display a list of a repeatable field group (RFG) in a post template. The RFG belongs to a related post of the post being displayed in the post template.
Solution:
- Create a View of the RFG, filtered by post relationship, where the parent Race Result PDF is set by the current post in the loop. In the loop of this View, output your custom field information.
- Create a View to display Race Result PDFs only. It should have a Post Relationship Query Filter, where the parent Race Event is the post where this View is displayed.
- Place the View of Race Result PDFs in the template for Race Events. This is the only View that should be placed in the Race Results section.
- In the Loop of the View of Race Result PDFs, place your View of the RFG. You can also output the title of the Race Result PDF if necessary, or any other information from the Race Result PDF that will help you break up the display of your data.
Problem: Social sharing plugin buttons are duplicated in View results and Content Templates.
Solution: Look for a sharing plugin that offers a shortcode you can use to place the buttons. This will be more compatible than a plugin that injects the buttons automatically. Put that shortcode in a Content Template.