Here's how I define the CPT:
$args = array(
'labels' => $labels,
'public' => FALSE,
'show_ui' => TRUE,
'capability_type' => SNG_CAP_SUPPORT,
'hierarchical' => FALSE,
'supports' => array(
'title',
'editor'
),
'menu_icon' => SNG_PLUGIN_URL . '/images/admin-support.png',
'rewrite' => FALSE,
'has_archive' => FALSE );
register_post_type( SNG_SUPPORT_POSTTYPE, $args );
Basically when a user creates a post of this post_type there's a success message that says "view this post" which leads to the front end of my site mysite.com/?sng-support=test-8. I want to remove this message and link but I'm not looking for a CSS fix. There MUST be a way to make this work? I tried playing with the args and I can't seem to figure out what I'm doing wrong...
Essentially I don't want the posts to be accessible from the URL or the front end unless I specifically query for them.
I appreciate any help! :)
single.php
from showing posts of that type?publicly_queryable
to false.