[Resolved] [Plugin: Connections] How do you apply jquery .toggle to hide/reveal bios?
I’m using a custom template and sorting within grouped categories. The short code I’m using is:
[connections_list template_name='staff-card-bio' category='10,11,12' order_by='id|SORT_ACS']
Within the custom template I’m using the following code to call the bio with a link.
<a href="#" onclick="$('#hidden').toggle('fast');">Read <?php echo $entry->getFirstName() ?>'s Bio</a> <div id="hidden" style="display: none;"><?php echo $entry->getBio() ?></div>
The problem I’m having is that in all four profiles that appear, every ‘read bio’ link reveals or hides only the first profile and never the profile it’s paired with. What am I doing wrong?
- The topic ‘[Resolved] [Plugin: Connections] How do you apply jquery .toggle to hide/reveal bios?’ is closed to new replies.