Support » Plugin: Unlist Posts & Pages » Unlisted posts and RSS

  • Resolved markjwarman

    (@markjwarman)


    I’m looking to hide posts from a site but I do want them to be accessible via RSS. This is so that I can hide posts that are more of an internal nature – staff notices etc – but get them to be pulled in to Sharepoint via RSS. Any idea if that’s possible?

Viewing 1 replies (of 1 total)
  • Plugin Author Brainstorm Force

    (@brainstormforce)

    Our plugin does not have any exclusion rules available in the UI right now.

    Although there is a filter in the plugin by which you can enable post hiding for RSS.

    Something like this should work:

    add_filter(
    	'unlist_posts_enabled',
    	function( $enabled ) {
    		if ( is_feed() ) {
    			$enabled = true;
    		}
    		return $enabled;
    	}
    );
Viewing 1 replies (of 1 total)
  • The topic ‘Unlisted posts and RSS’ is closed to new replies.