Banner for Advanced Code Recipe Tutorial for Paid Memberships Pro

With PMPro, you can optionally hide all member-only content from your site’s main blog page, category and other archive pages, as well as from search.

When you have your settings configured this way, site visitors will not see protected content while browsing your site. Additionally, logged in members will not see content that is unavailable for their level.

In this code recipe post, we show you how to add back some specific categories to show up in your searches and archives. This is a useful approach if you have some members-only content that you’d like to appear while non-members are browsing your site, while other category content should be excluded.

This content requires a premium membership plan.