echo '<div class="content-child-pages">';
    /* echo '<div class="child-pages-title">' . get_theme_mod( 'child_pages_title', 'Child Pages' ) . '</div>'; */
    while ($the_query->have_posts()) {
        $the_query->the_post();
        ?>
						<div class="child-page-entry">
							<header class="entry-header">
								<a class="title" href="<?php 
        echo get_permalink();
        ?>
"><?php 
        echo the_title();
        ?>
</a>
								<!--<?php 
        $root_map_id = easydita_knowledge_portal_get_root_map_id();
        ?>
								<div class="category <?php 
        echo get_post_meta($root_map_id, 'page_type', true);
        ?>
"><?php 
        echo get_the_title($root_map_id);
        ?>
</div>-->
							</header><!-- .entry-header -->
						
							<div class="entry-summary">
								<?php 
        easydita_knowledge_portal_get_the_shortdesc();
        ?>
							</div><!-- .entry-summary -->
        set_post_views(get_the_ID());
    }
    if ($page_type == 'content') {
        if (wp_get_post_parent_id(get_the_ID()) == 0) {
            get_template_part('template-parts/content', 'user-guide-home');
        } else {
            get_template_part('template-parts/content', 'user-guide-content');
        }
    } else {
        if ($page_type == 'faq') {
            get_template_part('template-parts/content', 'faq');
        } else {
            if ($page_type == 'tutorial') {
                get_template_part('template-parts/content', 'tutorial');
            } else {
                if (!get_post_meta(easydita_knowledge_portal_get_root_map_id(), 'page_type')) {
                    if (wp_get_post_parent_id(get_the_ID()) == 0) {
                        get_template_part('template-parts/content', 'user-guide-home');
                    } else {
                        get_template_part('template-parts/content', 'user-guide-content');
                    }
                }
            }
        }
    }
    // If comments are open or we have at least one comment, load up the comment template.
    if (comments_open() || get_comments_number()) {
        comments_template();
    }
}
?>