Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FAQ post type permalink fix.
<?php
function mrkwp_faq_posttype_fix_register_post_type_args( $args, $post_type )
{
if ($post_type == "faq" ) {
$args['rewrite'] = array(
'slug' => false,
);
}
return $args;
}
add_filter('register_post_type_args', 'mrkwp_faq_posttype_fix_register_post_type_args', 9999, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.