?> "> <div id="primary" class="site-content"> <?php if (have_posts()) { echo '<div class="list-posts">'; while (have_posts()) { the_post(); get_template_part('content', get_post_format()); } echo '</div>'; } else { echo '<div class="alert alert-error">' . esc_html__('Sorry. There are no posts to display', 'gon') . '</div>'; } ts_pagination(); ?> </div> </div> <!-- Right Sidebar --> <?php if ($page_column_class['right_sidebar']) { ?> <aside id="right-sidebar" class="ts-sidebar <?php echo esc_attr($page_column_class['right_sidebar_class']); ?> "> <?php if (is_active_sidebar($smof_data['ts_blog_right_sidebar'])) {
$paged = get_query_var('paged'); } } $posts = new WP_Query(array('post_type' => 'post', 'paged' => $paged)); if ($posts->have_posts()) { echo '<div class="list-posts">'; while ($posts->have_posts()) { $posts->the_post(); get_template_part('content', get_post_format()); } echo '</div>'; wp_reset_postdata(); } else { echo '<div class="alert alert-error">' . esc_html__('Sorry. There are no posts to display', 'gon') . '</div>'; } ts_pagination($posts); ?> </div> </div> <!-- Right Sidebar --> <?php if ($page_column_class['right_sidebar']) { ?> <aside id="right-sidebar" class="ts-sidebar <?php echo esc_attr($page_column_class['right_sidebar_class']); ?> "> <?php