Banner image for Rediredt Empty Category or Tag Archive When All Posts Are Members-Only

This guide outlines the process to redirect users from empty category or tag archives to the levels page.

Why would the category archive or tag archive be blank? In Paid Memberships Pro, we offer a setting to filter members-only content from the search results or archives pages. If all posts in a specific category are protected, there would be no results.

Use this code recipe to redirect users to your pricing page (or another page of your choice) when they can’t access that content.

This content requires a premium membership plan.