Forums

WP Hide Post
Posts Showing up on Blog page (not Home) (3 posts)

  1. Chris
    Member
    Posted 11 months ago #

    I have my Blog section on a different part of the site (at /blog/, set in Settings > Reading), but my posts were still showing up with everything checked.

    So I changed one line of the code in wp-hide-post.php to make this work. Line #59-61 was:

    function wphp_is_front_page() {
    	return is_front_page();
    }

    Changed to:

    function wphp_is_front_page() {
    	return is_front_page() || is_home();
    }

    And now it's hidden. Hope this helps someone else.

    http://wordpress.org/extend/plugins/wp-hide-post/

  2. saifalfalah
    Member
    Posted 11 months ago #

    Yup.. It worked.. Thanks..

    There was a fatal error though.. '}' was unexpected. I just removed the '}' and the plugin worked like a charm :D

  3. ttdirect
    Member
    Posted 7 months ago #

    I have WP Hide Post and I don't want to show all my videos on any page or post as after opting in they get sent a link to access the next video and so on. I have checked all the boxes and it doesn't show on the front (home) page but shows on all the other posts. Any help please?

Reply

You must log in to post.

About this Plugin

About this Topic