You can disallow a category to be listed by search engines using an SEO plugin such as Rank Math. http://rankmath.com/
De-indexing a category can be easily done.
However for not letting your users click on the posts that can be a little more tricky if they are already on the category page.
One possibility is to use the CSS pointer-events. For example this would be your CSS:
.category-banana .post-content li a {
pointer-events: none;
}
Evidently we don’t have a link to your category in question therefore we cannot give the accurate CSS.
Related Posts:
- Is it possible to use a single custom post as the site front page
- Listing a post’s categories and subcategories
- Single post comment template not working
- How do I show google ads between post content?
- Add inline style to get_the_category_list
- Help with figuring out the future post workaround
- Only nextpagelink on wp_link_pages
- Display a post map on a blank/new page
- How To Pass Current Post Type ID from Single Template To Custom Page Template
- Is it possible to create rel=”noindex, nofollow” for a single post if contain bad keywords?
- Custom seperate Single.php
- Set a cookie only in single posts
- Custom post type not respecting template hierarchy
- diffrent style for post single page
- WordPress object for comments frame [closed]
- I’m having a problem viewing the Youtube video
- Use different «Single.php» for custom categories
- force https except one page/post
- Single custom post type template not working (single-custom_post_template.php) not working
- Single.php category entries not showing right colours
- Link from archive-page.php to single-page.php
- How to check if a post is in categories x,y,z inludint their subcategories
- Changing the display of the themename_posted_on() function
- How to Highlight current category on category and single page template?
- Exclude single page from function
- WordPress, alternative single post template
- get full real path of thumbnail post img wordpress
- how to loop through this in blog single?
- Modify post template on Divi Theme
- I want to signin from first wordpress site to other wordpress website without registration..without using network mode
- Try to showing product file size on product single page
- Improve related posts
- Get active term on single (CPT) page
- Having single posts appear under the blog homepage and highlight menu items properly?
- Single.php loading fully on localhost but not on server
- explain why is_single doesn’t work
- How to disable the single view for a custom post type?
- Conditional for single-{post-type}.php
- How to modify single.php in a child theme?
- How do I get the category URL from get_the_category?
- Custom permalink structure only for default posts
- How do I create a link that will always show the latest post?
- Posts in multiple Categories different single.php
- How to show a post single post in page template
- Using previous_post_link and next_post_link to wrap around post sequence
- How do I create new content pages for my Custom Post Type?
- WordPress Single Conditional for Search Page
- Problem with single-page for my custom post
- Custom template for post type not working
- Which action fire in front-end single post only
- Best way to programatically add “rel” attributes to page and post images
- Display only entire most recent post on author page?
- 404 Page Not Found for Only One Post
- Add code just after Post content
- Pagination on single post page?
- in_category() works in single.php but not in page.php?
- Custom post template for particular posts
- custom post type parsed as attachment
- Add & store extra fields – WordPress Comments
- Adding conditional content to single post-type template
- How do I display a custom field from a custom taxonomy in single.php?
- Single page not working for custom post type
- My single.php page does not show the related data to the post which is clicked
- Which is better and faster ? WordPress Queries or SQL Query
- Force redirect single.php to index
- Display custom post types in wp_list_pages
- How to Manually Code Shortcode?
- Single.php Category Post Count
- How to use WP_Query() on single.php?
- Portfolio & Blog cohabitation : multiple single.php files?
- Help with a custom rewrite
- How to present a div only when the index.php is accessed for/by the single post pages
- get_terms (or tax_query) for term of current post?
- Single.php the_excerpt loads same as the_content not loading read more line
- trying to show single post but displays all post on a custom post type
- Insert a field with PREG_REPLACE – strange behaviour
- Custom Post Type Specific Post Template
- infinite loop on page with comments after changing comments.php and header.php
- Conflict in function to allow single post template based on category
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- custom wp_list_categories in single.php
- Loop all post on single.php
- Different template parts when on different pages
- get_the_terms child terms for current post/custom post only
- Why custom post redirecting to index page?
- custom post type single page
- custom post type single post preview for pending status
- If is single in header.php [duplicate]
- Only show related posts when another post has same term
- DIVs not showing correctly on CPT?
- Custom post type single display is ommited
- Single page problem when permalink type changed
- Query child posts on parents single.php?
- Pagination issue with Single.php
- is_singular won’t call my functions?
- Single file upload
- Custom single.php files for different post formats
- Can I have a specific template for products even if they are standard posts and not CPT?
- No matching template found when using single.php
- Show Next/Previous without Link