What’s in This Guide
This guide covers handling your content restriction matches in archive pages and everywhere else.
First, here’s a quick rundown of what the Content Control Protection settings let you do:
- Protect your main content (e.g., posts and pages) with either a redirect or by replacing content.
- Select how to protect your content if it’s part of a blog, category, or tag archive page.
- Decide how to protect your content if it’s displayed outside standard WP queries (i.e., everywhere else).
We’ll focus on #2 and #3 from the list above.
To learn about redirect and replacing content protection (#1), read these guides.
Handling Matches Within Archives
1. Filter the restricted items’ title, excerpt, and content.
Protect the content but allow the title and excerpt to display on archive pages.
Here’s an example of our blog page where we protect Test Post 2 with the Filter the restricted items’ title, excerpt, and content. setting.
2. Hide the restricted items from the archive page.
Protect the content and don’t list it (hide) on any archive page.
Using our example above, Test Post 2 won’t show on the blog page.
3. Replace the entire archive page with a custom page.
If there is at least 1 restricted post that shows on an archive, this will replace the (entire) archive contents with the contents of a page you choose.
In our example, notice below that the blog URL stays the same. There’s no redirect. The contents of the Yikes! page “takes over” the contents of the blog archive.
4. Redirect to a different page.
If there is at least 1 restricted post that shows on an archive, you can redirect to:
- Your site’s Login page, then redirect back to your archive
- Your site’s homepage
- A custom URL (internal or external)
Handling Matches Everywhere Else
This is a catch-all setting. You can either show or hide the title for restricted content in any place outside the main content area.