Problem:
I have a view where is inserted another view with Group of Repeating Fields (as a child post). The view with child post has this code inside:
<button data-toggle="collapse" data-target="#obsah">VÍCE</button> <div id="obsah" class="collapse"> [wpv-post-body view_template="None"] </div>
If I click on the button nothing happens. If I place code for button into view for parent, it works. And after, how to secure that only the related post-body will show, not all of them?
Solution:
You will need to assign a unique HTML ID attribute for each div tag, for example, you can change the codes from:
<button data-toggle="collapse" data-target="#obsah">VÍCE</button> <div id="obsah" class="collapse">
To:
<button data-toggle="collapse" data-target="#obsah-[wpv-post-id]">VÍCE</button> <div id="obsah-[wpv-post-id]" class="collapse">
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 |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 6 replies, has 2 voices.
Last updated by 7 years, 1 month ago.
Assisted by: Luo Yang.