Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
WP-ShowHide icon

WP-ShowHide

v3.0.0
by Lester Chan · 4.2 (43 reviews)

Allows you to embed content within your blog post via WordPress ShortCode API and toggling the visibility of the content via a link.

9K+ active installs Updated Aug 09, 2026 Tested to 7.0.9 Requires PHP 8.2
Try Demo Download
Pre-installed Ready in ~10s No card
WP-ShowHide

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

WP-ShowHide screenshot
WP-ShowHide screenshot
WP-ShowHide screenshot

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() and showhide_shortcode() global functions. They were internals; the plugin registers its own shortcode and assets.
  • BREAKING: The ShowHide and ShowHide_Template classes are now WP_ShowHide and WP_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 the WP_ShowHide, WP_ShowHide_Template and WP_ShowHide_Options classes.
  • NEW: Added the wp_showhide_version row, and an uninstall.php that deletes it on a single site and across a network.
  • NEW: The toggle script and the stylesheet are now files, js/wp-showhide.js and css/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-showhide class 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 of no works.
  • FIXED: Requesting wp-showhide.php directly ran it outside WordPress instead of exiting.

Try other plugins

Cyr-To-Lat icon

Cyr-To-Lat

4.7 · 300K+ installs

Convert Non-Latin characters in post, page and term slugs to Latin characters.