Rewrite with Front
-
Hi all,
Please do notice before buying this plugin than it’s not supporting rewrite with front.
So if you have a blog, and others parts in your website, with your blog page permalink changed, you may have a real issue.I did set a code, do turn around. But it may create problems. Is anyone did have tested ?
function cmmrm_route_modify_withfront() { //New arguments $cmmrm_route_args = get_post_type_object('cmmrm_route'); // get the post type to modify $cmmrm_route_args-> rewrite = array('with_front' => false); // add taxonomies support //$cmmrm_route_args-> exclude_from_search = false; // show in search result //re-register the same post type includeding the new args register_post_type( 'cmmrm_route', $cmmrm_route_args ); } add_action( 'init', 'cmmrm_route_modify_withfront', 100 );
- The topic ‘Rewrite with Front’ is closed to new replies.