I have difficulty to reply original post: https://toolset.com/forums/topic/view-dynamic-attribute-shortcode/.
Can set as open or merge with this post? Please, set the next reply to private.
Thanks!
Hi,
Thank you for contacting us and I'd be happy to assist.
I've read the background information from the other ticket and we can continue on this new ticket.
I'm setting your next reply as private so that you can share temporary admin login details.
Please also share the page where both these views can be seen in use.
regards,
Waqar
Hi,
Thank you for sharing the admin access and further details.
For passing on an ID or any other information from the current post to nested level views, you can use the shortcode attribute feature:
https://toolset.com/documentation/user-guides/views/passing-arguments-to-views/
For example, in your content template "Startup Check Challenges Tab" which is starting calling the series of nested views, you can update the view's shortcode to include current startup post's ID in an attribute, for example, "startupid":
Current:
[wpv-view name="dashboard-challenges-get-program"]
With new shortcode attribute:
[wpv-view name="dashboard-challenges-get-program" startupid="[wpv-post-id]"]
That passed on ID value can then be used inside the view "Dashboard Challenges (get program)", through the "wpv-attribute" shortcode:
( ref: https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-attribute )
[wpv-attribute name='startupid']
The same value can then be passed on again to the further nested view "Dashboard Challenges", like this:
[wpv-view name="dashboard-challenges" startupid="[wpv-attribute name='startupid']"]
Using the same method, you can keep passing this value, until you've reached the view "Check Startups".
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!