
The plugins help you remove clutters from posts and pages to give a minimalist. With this plugin you can easily show/hide content, collapse/expand lists, add quizzes, collapse widgets, etc. There may be other conditions where it causes problems that I’m not aware of. The Show-Hide/Collapse-Expand plugin helps you manage the amount of content to show on your website. This has not been completely tested and may cause timeout issue if used with options pages or excessive numbers of fields. I’m very stuck here on a solution and my client is getting rather agitated about it. When I hide the primary container and then unhide it, all secondary Show/Hide containers default to Show. I'm using them to reduce the amount of visual real estate taken up by filters, color keys, etc.

I came across this thread, which seems to be a similar issue, but Elliot states that the fields now all save regardless of whether shown or not. I have several nested Show/Hide buttons- Show/Hide containers that are in another container controlled by a Show/Hide button. But then I tried putting the conditional logic instead on each sub-field directly. However, removing this show / hide means that dragging and dropping the items to re-order is near impossible as they’re too big on the screen and it becomes very confusing.Īt first I used a layout ‘tab’ above the sub-fields to act as the wrapper with which it shows and hides items beneath it. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Once I removed the show / hide functionality, the fields saved correctly after re-ordering. A tag already exists with the provided branch name.
Wordpress nested showhide update#
If all sub-fields are hidden with the ‘show / hide’ checkbox and I update say, ‘set 3’, then re-order it to where ‘set 2’ was, the contents of the sub-fields in each set swap over! This is madness in behaviour and makes reordering the items near impossible. Example usage: pshowhide id1Your text is here. By default the content is hidden and user will have to click on the the link to toggle it. A link is top of the content and other is below the content.

Sub-fields (the problem occurs on these fields) This plugin is similar to Wp-ShowHide that extended for nested shortcodes, custom style and two link toggling the content. This is very strange behaviour and may be a bug. Just assign this category to the posts you want to hide. The content doesn’t swap over in the fields that are hidden, but the other fields showing do. For example, You can create a category called Hidden for the posts that you want to hide from the public. However, because there are so many fields, I chose to only show these sub-fields on each nested repeater, if the user checks a box to see them (more user-friendly).Īll of this works, except for when items are re-ordered on the parent repeater. In this code, we have hidden the categories by adding the exclude parameter. All sub-menus are lists (ul) nested immediately inside of list items. In each nested repeater item is a set of sub-fields. Pretty much what you want to do is hide all sub-menus by default (using display: none) and then when the parent item is hovered, use display:block to make them visible again. I have a repeater, with nested repeaters.
