You need to add a custom rewrite rule in functions.php:
function your_cpt_rewrite_rule() {
add_rewrite_rule('(.*?)$', 'index.php?your_cpt=$matches[1]', 'top');
}
add_action('after_theme_setup', 'your_cpt_rewrite_rule');
You need to add a custom rewrite rule in functions.php:
function your_cpt_rewrite_rule() {
add_rewrite_rule('(.*?)$', 'index.php?your_cpt=$matches[1]', 'top');
}
add_action('after_theme_setup', 'your_cpt_rewrite_rule');