jQuery('#checkbox_more_page').change(function() {
"/(.*?)<\/h2>/i"
...как сделать поиск вообще всех заголовков...
2
заменить на [1-6]
:"/(.*?)<\/h[1-6]>/i"
$template = get_page_template_slug( $post->ID );
if( $template === 'page-template.php') :
get_template_part( 'template-parts/post/content--template', get_post_format() );
else :
get_template_part( 'template-parts/post/content', get_post_format() );
endif;
/blog
и /
. Никакие реврайты не нужны, просто в первом добавьте ваш вордпресс, а во втором - стандартное поведение/каталоги/что там у вас.