There are plenty answers on WPSE about restricting page views based on logged in users or visitors.
what you should do is first check if user is logged in then check if you are on your restricted category and redirect on another page (maybe home or login page) if user is not logged in.
something like this in your functions.php
file.
add_action( 'template_redirect', 'wpse_restrict_support');
function wpse_restrict_support(){
if( ! is_user_logged_in() && is_category( 'support' ) ) {
wp_redirect( '/wp-login.php' );
exit;
}
}
check out is_category(), is_user_logged_in() and wp_redirect() for more info
Related Posts:
- How to check if I’m on the last page of posts?
- Get page content by category or tag
- Category page showing posts from all categories
- Loop with Dynamic Categories
- Create a full width responsive header image per page
- Remove child products from woocommerce category page [closed]
- Using same slug name for a page and category
- Remove “Category Archives: title” at the top of a category page [duplicate]
- How to have a static category/author page?
- Listing all posts from current category on page
- I use same slug name for category and page
- Page with the same name of a category
- Show posts of category in a page
- Show pages and articles in category search result
- How to create taxonomy values for pages and list them in wp-admin
- What type of page should i use? static page or category page? and what’s the difference? [closed]
- Duplicate Category and Page URL loads Category instead of the Page
- Add a specific category at a specific place to the menu that uses wp_list_pages
- Viewing category pages without the word ‘category’ in URL
- in_category() works in single.php but not in page.php?
- Categories vs. Page Site Organization
- How do I automatically put categories and their descriptions on a WP Page?
- editing fonts of category links from the_category() funtion
- Hard coded main navigation
- How to make 2 tag feeds show up on 1 page?
- Search in custom post type AND in pages with category
- posts_nav_link(); picks up index.php instead of category.php as template
- Give a page priority over a category that has the same name?
- Multiple URL’s based on category for one post
- category permalinks
- How to “group” (categorize) the Pages together?
- Different banner for different section
- Custom category URL rewriting
- Putting a Category of posts under a Page
- How can you change the permalink for pages?
- Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?
- Category.php loads first before page.php?
- How to insert category list into post creation page, and retrieve chosen categories?
- How do I display something on a particular category page?
- Automatically redirect a page to a category that share the same slug
- How to create a subcategory to a PAGE on WP?
- Get the ID of 10 Latest Pages stored in a WordPress Category
- How to show 5 posts from specific category on related page?
- How do I get category and page ID’s?
- How to put page numbers with the next/previous on a post/category list?
- How do I attach a page to a category similar to how we attach media to a post?
- How can I display tags as categories?
- Trying to create a Categorised Index (archive?) to use as my Home Page
- “Virtual category page” based on a custom field filter
- Group search results by category
- Getting the Most Recent Posts from Multiple Categories
- Showing Categories for Page Edit – without plugin
- Using categories with pages
- Add posts of a certain category to a page
- custom query for both category and pages using global $wpdb;
- Posts of specific category on page and excluded from index.htm
- Custom Portfolio Page
- How to use category slug with a regular page
- display specific category when website loads
- remove url from categories
- How to redirect to category page if page does not exists?
- Page category filter in admin dashboard
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- Template category.php with page (no posts)
- Showing the category hierarchy as clicked in WordPress, with image and desc
- How can I make a category function as a page?
- displaying one category on one page
- Need help to structure our a complex hierarchy
- Adding a category view to a page
- Category For Pages In WordPress
- Getting page/category content to show up in my custom page template
- Paginations in Category Page Leads to Sample Pages
- Using categories and pages in menus
- Using wp_list_pages to create 2 lists of pages and include and exclude some of them depending on their category
- WordPress Shop and restricting products and categories for some users/groups
- Pages with posts filtered by category
- Pages, Categories, and working with someone else’s code
- Twenty Eleven Theme [duplicate]
- Page redirecting to category (IE only)
- Return selected categories only in custom page meta box?
- Need help with category page customization meeting certain condition
- Show custom menu in category and its posts
- not empty categories don’t show in menu [closed]
- How can I show page per category in wordpress? (Yes, category by page!)
- How to display posts by author in a separate page, other than author.php?
- Category Alphabet List Broken
- Display only one result from “get_the_category_list”
- Assign an icon to a category post
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- 3 Columns, 3 Categories, One Archive, and Pagination
- How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
- how to nest specific category thumbnails inside different containers
- custom wp_list_categories in single.php
- How can i echo next and previous custom category from a Taxonomy
- create post with main category and other categories from admin panel
- get_posts – require all categories
- Get post by Category in custom template
- Assign a category by user and customize the edit-tags.php?taxonomy=category page
- comments_number fails to print
- How to show child category name & post from it’s parent [closed]