Problem:
How can I access details about the "current page", for example from within a View that is inserted in any page, how can I display data about the page where the View is inserted to, inside the View?
Solution:
You can always use item="$current_page
This is forcing any Views ShortCode that supports the item attribute to read (and display) data from the current "page or post container" whereto the ShortCode is inserted inside any View or Content Template
Relevant Documentation:
https://toolset.com/documentation/user-guides/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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 2 replies, has 2 voices.
Last updated by joshH 4 years, 3 months ago.
Assisted by: Beda.