Skip to main content
2 of 3
added 212 characters in body
//Place code in function.php 
add_action('init', 'my_new_default_post_type', 1); 
function my_new_default_post_type() 
{ 
register_post_type('post', 
array(
// 'labels' => $labels, 
'public' => true, 
//'show_in_admin_bar' => true,
'_builtin' => false, 
'_edit_link' => 'post.php?post=%d', 
'capability_type' => 'post', 
'map_meta_cap' => true, 
'hierarchical' => false, 
'rewrite' => array('slug' => 'resources/blog'), // Add your slug here 
'query_var' => false, 
'supports' => array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats'),
)); 
/* If you add above code in function.php, Your blog pagination is stopped to working, You need to add rewrite rule using "Debug This" Plugin under Query >> Rewrite Section & modify your rewrite_rule. */ 
add_rewrite_rule('(.?.+?)/page/?([0-9]{1,})/?$', 'index.php?pagename=resources/blog&paged=$matches[1]', 'top'); }