HidePost plugin for Wordpress
HidePost Plugin for Wordpress
Summary
A plugin that hide a part of your blog post ( links, texts... ) that only registered and logged in user can see it. Just put your content between [hidepost][/ hidepost]
From version 2.3, you can add level to hidepost tag like [hidepost=6][/ hidepost] so that only users have their level higher than 6 can see you hidden content.
You can hide all the links in your blog to unregistered users, just go to Option page and check Protect links.
Require Wordpress 1.5 and compatible with ( it should ) 2.8.x.
Install
Download it from Wordpress's repo , if you installed it through Wordpress's plugin page, just skip step 1 and 2
- Upload the folder hidepost into /wp-content/plugins/ directory
- Active it through Plugins page
- Go to Option -> Hidepost and check Enable Hidepost
Upgrade
- Deactive Hidepost
- Upload new hidepost folder to /wp-content/plugins/ directory
- Reactive it and check the new feature in Option page
Note: If you are upgrade from version 2.2 or less, you'll need to replace your old tag ( maybe [protect] ) with the new tag ( [hidepost] )
Other Note
If you have any question, fell free to drop me an email or comment on this page.
Sorry for my bad English, I tried my best ![]()
I'll not include changelog and FAQ in this page, so if you want to read it, please go to my plugin's page in Wordpress repo.
More detail change log can be found here
Good luck and have fun using my plugin.
Donation
Donation through Paypal if you want to contribute to my works.
Hi, I read the post about the More tag but didn't help. Since I updated my wordpress blog to the latest (2.8) it is giving me conflicts with the MORE tag and the photos.
Before I updated to the latest version I didn't have problems with the More tag and photos, sometimes I had sonme problems with the More tag when it was in between
, but nothing else. Now, wherever there is a post with photos and the More tag it puts everything highleated as a link, and if I remove the photos everything is allright. But the weirdest thing is that if I get in the post, this looks alright.
Could anyone help me with this? This is the link to my blog: http://www.popdelos80.com/
for some of the posts i've removed the More tag. You can see how it looks like with this problem in the post: I.O.U. – Freeez.
Thanks in advanced,
Silvia
Can you tell me how to change the text "Please Login or Register to read the rest of this content?"
I would like to add an image to the hidden post content and make the text bold.
I tried to edit the plugin php but this did not work. (see below)
$hidepost_content_text = 'Please %login% or %register% to download video(s).';
$hidepost_role_text = 'You must be a(n) %role% to view this content';
$hidepost_link_text = 'Please %login% or %register% to download video(s).';
@Ryan
You should try a newer version of hidepost, and edit it directly in Option page.
To add an image, use < img src" "/> like usual
Hello,
Great plugin!
I'm using it with sniplets to hide posts in bulk, but pages are hidden too. Is ther a way to hide only posts and not pages?
Hi,
Great plugin but I have one problem.
Site is not opening in firefox 3.5.3 after I activated this plugin. Kindly let me know workaround.
I really love this script, it does exactly what I've been looking for. One thing though, is there a code where I can manually add the [hidepost] tag inside of my template? I have some information in my template that doesn't get generated by the admin, but rather in the template itself. Could someone supply me with this? Thank you.
Hi, there was some discussion a while back about hidepost not working in feeds. I have since done some investigation and, while it works fine in RSS2 and ATOM feeds, it doesn't work in RSS[1] and RDF feeds. I think the reason is that you have added the filter to 'the_content' but those older feeds use 'the_content_rss'.
There may be a problem with *all* the versions of the feed with very short posts because they all use 'the_excerpt_rss' but you are only filtering 'the_excerpt'.
I think you will need to investigate adding the filter to those other routines as well else there is a risk that private data may leak out when you don't expect it.
Can you use Hidepost plugin to hide the content by role? How can I do that as I did not see anything related in the Option?
How can I use hidepost to hide a widget? I want to remove an advertisement widget for registered users.
What php code do I need to use?
Thanks.
@Peter
You can use "[hidepost=level][/hidepost]". You can find more information in the Option page
@Swen
Currently Hidepost don't support hide in widget
@Fu4ny
I mean, I will just add a hardcoded wiget and place a tag in front of it. Example:
Oops, I can't use code tags in here
@Swen
No, it only support the content in each post.
@Fu4ny
Ok, thanks for creating this great plugin though! I love it
Fuyny,
Hope all is well. I'm using your Hidepost plugin on my membership site. I noticed in a few other posts that others were having trouble protecting content if they subscribe to your rss feed. After doing some testing, i'm having the same issue. Any workarounds to this? Thanks
Hello Fu4ny I love your plugin thanks for make it.
The problem I have is when I check the option: Protect Link , the "" option is hide too, what can I modify in the plugin so the "" option is still visible for everybody?
I really will apreciate your help. thanks
@macxima
I mean the "more" option
@macxima
I'll take a look into the problem, maybe it's not hard to fix
Hi Dave (Oct 18th) I have managed to solve this problem - see my post above (Sep 25th) for details.
Hi Team,
Thanks for this plugin, seems the one I need. I have a strange thing when I activate it : As soon as I activate IT, WP log me off !!

When I log again with my admin user, the plugin is still not activated. Any help ?
Thanks
It should be some problem with you plugin or your site ( or maybe your browser ). Hidepost itself don't touch anything in wp's cookie or something like that.
Hi Fu4ny,
Thanks for suggestion. Does not work. Event with another browser, on another pc. Same strange thing.
I delete the plugin, and reinstall it. Same problem. Other way or suggestions ?
Many thanks
Best regards
I noticed an error in the code for the plug-in (version 2.7.1): you misspelt "the_excerpt" in "add_filter('the_exceprt', 'hidepost_filter_post');"
Haven't noticed any problems despite that though lol
Great plug-in anyway
@JM
Can you provide your site url, can list of plugins that you are using ?
@Jon
, and I didn't find any bug reported 
Oops, I misspelled it, but not many themes are using it, though
Hi, the theme used is Mandigo theme. I've found another solution for my problem, thanks anyway for help. Regards