'post', 'posts_per_page' => 10, 'orderby' => 'date', 'order' => 'DESC', 'paged' => $paged ); $custom_query = new WP_Query($custom_args); ?>
have_posts()) : ?>
have_posts()) : $custom_query->the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ get_template_part('template-parts/content', $layout); endwhile; // Reset post data wp_reset_postdata(); ?>
max_num_pages; if ($total_pages > 1) : echo '
'; echo ''; echo '
'; endif; else : get_template_part('template-parts/content', 'none'); endif; ?>