WordPress.org

Ready to get started?Download WordPress

Forums

WP Hide Post
Plugin not working on posts page (10 posts)

  1. Wonderful Wanderings
    Member
    Posted 8 months ago #

    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/

  2. Wonderful Wanderings
    Member
    Posted 8 months ago #

    Anyone?

  3. IanLeslie
    Member
    Posted 6 months ago #

    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.

  4. sliceofpie
    Member
    Posted 6 months ago #

    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();
    }
  5. blaniosh
    Member
    Posted 5 months ago #

    Excellent - I can confirm that the change above works.

  6. LagaV
    Member
    Posted 5 months ago #

    Unfortunately I can't confirm that this code change worked. I still see the hidden post, when opening a listed post.

  7. MaureenBriard
    Member
    Posted 4 months ago #

    Wow, thanks sliceofpie. I was looking for a solution to this problem and your code snippet appears to have done the trick. Great.

  8. RB001
    Member
    Posted 4 months ago #

    Thanks sliceofpie that worked for me

  9. Shaan
    Member
    Posted 3 months ago #

    Yes, I can confirm that the code works for me as well.

  10. neocast
    Member
    Posted 1 month ago #

    Code snippet worked for me as well.

Reply

You must log in to post.

About this Plugin

About this Topic