Problem: I have a View that shows posts from post type A. I would like to include a link to related post type B, and I would like for the link to open in a new window/tab.
Solution: Build a link manually in HTML using the target attribute to open in a new window. Use the item attribute in wpv-post-url and wpv-post-title shortcodes to insert information about a related post.
<a href="[wpv-post-url item='@occupier.parent']" target="_blank">[wpv-post-title item="@occupier.parent"]</a>
Relevant Documentation: https://toolset.com/documentation/user-guides/views/views-shortcodes/
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
Dieses Thema enthält 4 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 4 Jahren, 6 Monaten.
Assistiert von: Christian Cox.