-
you can either disable click events using CSS.
.linkclass { pointer-events: none;}
-
Or better Modify the template and remove the part which creates anchor links for titles.
note: with the above, it is still possible to access the page by directly putting the full URL in the browser. if you want to completely remove the single page.
add_action('register_post_type_args', function ($args, $postType) {
if ($postType !== 'post'){
return $args;
}
$args['publicly_queryable'] = false;
return $args;
}, 99, 2);
Related Posts:
- How to automatically generate a unique random slug
- How does filter the_posts work?
- Querying post from a multisite network
- Publish pending article from front end with a button?
- Invalid Post Type error when attempting to filter and Bulk Edit posts
- How can I export WordPress posts’ attachments?
- Only display posts with comments
- How to update all post at once?
- Working Bootstrap Carousel Conversion to WP – Technical Questions
- Force update all posts in custom post type, no content changes
- Add custom field to category of custom post type
- Change post format using custom field
- How to Customize number of blog posts on first page?
- Load posts into sidebar and paginate via ajax?
- How to intercept Post Title on Post-Save
- Display Latest Post from all Categories
- Advanced Custom Fields – Storing array value for further usage
- Sort posts by newest child while keeping hierarchy intact
- Custom Theme Want To Remove One Category From All Displays
- Instead of submiting an entire post, is there any way to submit a lite-post or a simple message?
- How do I use Ajax to show the new posts realtime, on the frontpage
- Allow anonymous users to post to my site for moderation
- How Can i Get 5 Recent Post Title With Corresponding Link?
- WP_Query posts_per_page ignored
- Easy way to delete 70k posts and attached media?
- wp_insert_post works, but the post isn’t visible in the admin post list or front end
- wp_query ‘s’ parameter does not work with custom post type
- WP Query – duplicated posts once including tags in search results
- XML-RPC and post_date
- wp_tag_cloud() and the_taxonomies() work but not the_tag()
- View the number of entries recorded per day
- Define a wordpress constant through plugin functions?
- Show all posts in sidebar in single.php
- recent posts for different categories
- Drag posts and pages so you can sort them in order
- import mailchimp newsletters into wordpress [closed]
- Is there a PHP script to replace post date with updated modified date
- CPT archive redirects to single post
- Archiving by academic year instead of calendar year
- Display News Posts by Day with Post Counter
- remove post and categories/tags count from right now dashboard widget
- How to allow visitors to filter posts by multiple taxonomies
- How we exclude current post form related posts
- Add title for previous and next posts to Yoko Theme
- Add $values to post_class()
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- Is it possible to use WP_Query to only pull posts with attachments?
- disable Tab post on nav-menus page (Admin)
- Second get_permalink inside loop points to wrong URL
- How to make the home screen of my blog not show full posts?
- Best Way to Add UnEditable HTML to Posts
- Use Click Image to Play Youtube Video in a WordPress Loop
- Manage Private Posts
- Stop wordpress from creating empty/null entries
- How to get the old WordPress Draft Editor view back with the Word count?
- Force a specific template as default
- Updating post meta for checkbox
- How to make Link to go on the first post
- How do I switch css class on post
- Stop post submission without losing data?
- How to Rearrange WordPress Tags list on frontend using Shortcode with specific order?
- Remove subcategory slug from url
- Site/Post preview is not working on all social media
- Add a field in my rest api
- Custom post grid
- Posting to WP via URL
- Getting image data from phone camera (MediaDevices.getUserMedia) into user post
- How to hide protected posts from archive?
- Prevent a post with a specific ID from being created
- Count words for each author separately
- Template with ACF and Pagebuilder
- “read more” redirects to the wrong page
- Settings missing from the add new post page
- Posting or Updating Article Fails on WordPress [closed]
- delete post hook not being fired when deling in wordpress dashboard admin
- Replace Tag Keyword With Link Within Post Content
- New blog post published notification – Buddypress
- Custom post styling per category?
- What is the difference between options and custom fields (meta) in WordPress?
- Manipulate query to show specific post
- Show posts from last 3 years in posts page
- My custom query is displaying random posts in random order
- Output wp_link_pages as raw url
- Send Newsletter-Email when post changes
- Display the latest post from some selected authors
- Add custom class to existing menu items from custom meta
- Post Publish Metaxbox on a Front End Page
- Have latest post and recent posts display differently
- Allow users to create their own page/s
- Multiple loops on a Search result page?
- WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1
- How do I display a full post, not just an excerpt?
- Redirecting to a post based on a GET parameter and a custom field
- Stop Authors from submitting spam post
- Simple method to generate posts from files
- Adding Count Post in Page
- How add class the_content();?
- Title displaying multiple times
- Published posts counter [closed]
- change page name on page list