Title: Plugin not working on posts page
Last modified: August 21, 2016

---

# Plugin not working on posts page

 *  [Wonderful Wanderings](https://wordpress.org/support/users/wonderful-wanderings/)
 * (@wonderful-wanderings)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/)
 * Hi there,
 * I’m using this plugin, but I have to make pages of the posts I don’t want to 
   show because the plugin isn’t working everywhere for posts…
    I want to be able
   to hide my posts everywhere, except from searches and search engines, but when
   I use WP Hide Post, the posts still show up ion my blog page (which isn’t my 
   home page) AND when I go through my posts using ‘next/previous post’.
 * This is pretty annoying as I’m now stuck with a bunch of hidden pages that should
   actually be posts
 * [http://wordpress.org/plugins/wp-hide-post/](http://wordpress.org/plugins/wp-hide-post/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Thread Starter [Wonderful Wanderings](https://wordpress.org/support/users/wonderful-wanderings/)
 * (@wonderful-wanderings)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332407)
 * Anyone?
 *  [IanLeslie](https://wordpress.org/support/users/ianleslie/)
 * (@ianleslie)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332437)
 * I see the same thing. This plug-in was doing just what I wanted until I switched
   to a static front page. Now the blog page shows the hidden posts even though 
   I don’t want them there.
 *  [sliceofpie](https://wordpress.org/support/users/sliceofpie/)
 * (@sliceofpie)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332440)
 * I think I’ve found a solution, but it involves hacking the plugin.
    You need 
   to replace is_front_page() with is_home() in wp-hide-post.php line 60:
 *     ```
       function wphp_is_front_page() {
       	return is_front_page();
       }
       ```
   
 * Should be:
 *     ```
       function wphp_is_front_page() {
       	return is_home();
       }
       ```
   
 *  [blaniosh](https://wordpress.org/support/users/blaniosh/)
 * (@blaniosh)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332457)
 * Excellent – I can confirm that the change above works.
 *  [LagaV](https://wordpress.org/support/users/lagav/)
 * (@lagav)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332461)
 * Unfortunately I can’t confirm that this code change worked. I still see the hidden
   post, when opening a listed post.
 *  [ChewieLolz](https://wordpress.org/support/users/maureenbriard/)
 * (@maureenbriard)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332464)
 * Wow, thanks sliceofpie. I was looking for a solution to this problem and your
   code snippet appears to have done the trick. Great.
 *  [RB001](https://wordpress.org/support/users/rb001/)
 * (@rb001)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332465)
 * Thanks sliceofpie that worked for me
 *  [Shaan](https://wordpress.org/support/users/munny1/)
 * (@munny1)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332466)
 * Yes, I can confirm that the code works for me as well.
 *  [neocast](https://wordpress.org/support/users/neocast/)
 * (@neocast)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332467)
 * Code snippet worked for me as well.
 *  [rickshawman](https://wordpress.org/support/users/dubpluris/)
 * (@dubpluris)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332468)
 * Worked for me too. Seems like this should be included in the plugin as its pretty
   common for the blog not to be the homepage. Thanks!!
 *  [terri_c](https://wordpress.org/support/users/terri_c/)
 * (@terri_c)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332469)
 * This hack worked for me for a little while, but now my hidden posts are showing
   again. I still have the correct code in the php file. function wphp_is_front_page(){
   
   return is_home(); } Any thoughts?
 *  [thezedt](https://wordpress.org/support/users/thezedt/)
 * (@thezedt)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332471)
 * _is\_front\_page()_ and _is\_home()_ return different results depending on who
   is displaying your posts list (the “homepage” or the “blog page”).
 * That’s why one works for some while the other for others.
    Changing to
 *     ```
       return is_home() || is_front_page()
       ```
   
 * will match both cases (but may match too much).
 * See [http://codex.wordpress.org/Function_Reference/is_home](http://codex.wordpress.org/Function_Reference/is_home)
   for reference.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Plugin not working on posts page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-hide-post.svg)
 * [WP Hide Post](https://wordpress.org/plugins/wp-hide-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hide-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hide-post/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hide-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hide-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hide-post/reviews/)

## Tags

 * [next](https://wordpress.org/support/topic-tag/next/)
 * [previous](https://wordpress.org/support/topic-tag/previous/)

 * 12 replies
 * 12 participants
 * Last reply from: [thezedt](https://wordpress.org/support/users/thezedt/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-not-working-on-posts-page/#post-4332471)
 * Status: not resolved