helpers()->get_content_header(); /** * @var WP_Post $template_page */ $template_page = get_post($template_id); if (!empty($template_id) && $template_page instanceof WP_Post) { global $post; $post = $template_page; $content = !empty($post->post_content) ? $post->post_content : ''; echo apply_filters('shortcode_output', $content); } elseif (is_singular()) { get_template_part('templates/blog/blog', 'single'); } else { get_template_part('templates/blog/blog', 'default'); } get_footer();