Order Categories and all custom taxonomies terms (hierarchically) using a Drag and Drop Sortable JavaScript capability.
About WP-ShowHide
This plugin allows you to hide content on your website and display it only when the user clicks on a "Show Content" link. You can customize the text of the link and set the default visibility of the content. The plugin also provides CSS styles for you to customize the appearance of the hidden content.Screenshots



Frequently asked questions
What is WP-ShowHide?
WP-ShowHide is a WordPress plugin that allows you to embed content within your blog post using the WordPress ShortCode API. It enables toggling the visibility of this content via a link.
How does WP-ShowHide work by default?
By default, the content enclosed within the showhide shortcode is hidden. Users must click on a "Show Content" link to reveal it.
Can I customize the text for showing and hiding content?
Yes, you can customize the text using the 'more_text' and 'less_text' attributes within the shortcode, such as 'more_text="Show Press Release (%s More Words)"'. The '%s' placeholder can be used to display the number of words.
Can I have multiple hidden content sections on one page?
Yes, you can have multiple showhide content sections within a post or a page by specifying a new 'type' attribute for each section.
How can I make the content visible by default?
To make the content visible by default, you can set the 'hidden' attribute to 'no' in the shortcode, for example: [showhide hidden="no"].
Changelog
3.0.0
- BREAKING: Requires WordPress 6.8 and PHP 8.2, up from 6.0 and 7.4.
- BREAKING: Removed the
showhide_scripts(),showhide_js()andshowhide_shortcode()global functions. They were internals; the plugin registers its own shortcode and assets. - BREAKING: The
ShowHideandShowHide_Templateclasses are nowWP_ShowHideandWP_ShowHide_Template. - NEW: Added a Show/Hide block for the block editor, which holds the content it hides as ordinary blocks. The
[showhide]shortcode is unchanged and still supported — it is not deprecated, posts using it need no editing, and the two render the same markup. - NEW: Restructured into
includes/, behind theWP_ShowHide,WP_ShowHide_TemplateandWP_ShowHide_Optionsclasses. - NEW: Added the
wp_showhide_versionrow, and anuninstall.phpthat deletes it on a single site and across a network. - NEW: The toggle script and the stylesheet are now files,
js/wp-showhide.jsandcss/wp-showhide.css, so a browser caches them once instead of reading them inline on every page. - NEW: Added a PHPUnit and vitest test suite, and GitHub Actions CI.
- CHANGED: Both elements the shortcode renders now carry a
wp-showhideclass alongside the classes they have always had. Nothing was renamed or removed, so existing theme CSS is unaffected. - FIXED:
hidden="No"left the content collapsed instead of expanding it. The attribute is matched case insensitively now, so any spelling ofnoworks. - FIXED: Requesting
wp-showhide.phpdirectly ran it outside WordPress instead of exiting.
