WP ShowHide Elements
2008-01-31 @ 18:27Adds a Javascript for you to hide or show what ever ID you want, with a mouse click. You need to add some code to your theme to make it work. With this you can create dynamic menus that can easily be hidden or shown.
- Download: WP ShowHide Elements
- Last updated: 2008-01-31
- Version: 0.1
- Tested with: 2.3.1
Install
- Upload the FOLDER ‘wp-showhide-elements’ to the /wp-content/plugins/
- Activate the plugin ‘WP ShowHide Elements’ through the ‘Plugins’ menu in admin
Usage
- Create a div to show / hide. Add an ID and name it whatever you want.
- Create a anchor and add the ID of your div into wp_show() function.
<p id="mytest">my text</p>
<a href="javascript:void(0);" onclick="wp_showhide('mytest')">my link</a>
Possible future upgrades
- Support for multiple elements to be closed in one click
- Choice on what specific pages to include the Javascript
Bug report
If you have found a bug I want to know about it so I can fix it.
- Tell me your version number, WordPress version and what browser you use.
- If you suspect a collision with another plugin, tell me what plugin you suspect, or send me a list with suspected plugins
- Have you tested this plugin on another WordPress-version and can confirm that it works? Let me know!
Known bugs
- No bugs reported so far
Contribute / Feedback
The best way to contribute today is to spread the word, link to this page, blog about WP ShowHide Elements or give me feedback. All kinds of feedback are helpful to me. Suggestions and bug report are also welcome.







2009-06-03 @ 7:23
i want to display a post with div hidden at start.it contains answer to the question.how can i do that?
2009-09-06 @ 20:23
Can you add something like a cookie to remember the status of the IDs (to show or hide) when we navigate through the site or reload the page?…
2009-09-09 @ 14:37
Paul:
Try: my text
2009-09-09 @ 14:38
Paul:
Try: p id=”mytest” style=”display:none”
2009-10-16 @ 2:53
@paul:
try:
test
one, two, tree, four …
wp_showhide(‘mytest’)
it’s works :)
2009-10-16 @ 2:54
@paul:
try add:
””wp_showhide(‘mytest’) ””
2009-10-16 @ 2:55
@paul:
try add:
‘script’ wp_showhide(‘mytest’) ‘script’
of coure ‘ =
2009-10-16 @ 2:56
@paul:
try add:
’script’ wp_showhide(’mytest’) ’script’
of coure ‘ = > <
2010-02-05 @ 20:37
Help – I don’t understand how Paul’s problem got solved. How can the text be hidden at first, and then revealed?
Thanks!
2010-02-22 @ 0:35
Hey,
I’m also looking for a solution to this. How can the element be hidden by default and shown on click of the link?.
Thanks
2010-03-25 @ 15:50
Hi,
I’m also looking for a solution to this problem. And to be able to make more than one element show on the same click. (Using download-elements with their own ID’s.)
thank you
2010-06-01 @ 10:38
Yip, I would also like to find a solution to the text being hidden by default.
2010-06-08 @ 1:42
I have the same question as everyone else. Was this ever resolved? How do you modify this plugin to hide the text initially?
Thanks!
2010-06-20 @ 2:24
Hello, where can I see a demo of this plugin?
Thanks a lot!
2010-07-07 @ 19:46
I also would like to know how we can have the text hidden by default.
2010-07-28 @ 6:17
This worked wonders for me, after installing and activating, inside posts I used a button as the switch:
my vb code…
2010-07-28 @ 6:19
sorry
(input type = ”button” name = ”button” value = ”Show/Hide Code” onclick = ”wp_showhide(‘vbcode’)” /)
(div id=”vbcode” style=”display:none”‘)
code yadayadayada…
(/div)
2010-08-31 @ 12:34
try one of these plugins instead
http://wordpress.org/extend/plugins/tags/spoiler