<?php get_header(); ?>
<main class="page-main">
<?php
global $paged;
global $wp_query;
$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query(array (
'post_type' => array( 'post' ),
'post_status' => array( 'publish' ),
'posts_per_page' => '2',
'paged' => $paged
));
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<h2>
<?php the_title();?>
</h2>
<?php endwhile; ?>
<?php the_posts_pagination() ?>
<?php
$wp_query = null;
$wp_query = $temp;
?>
</main>
<?php get_footer(); ?>
<?php
$args = array(
'posts_per_page' => 15,
'post_type' => 'wallets',
'post_status' => 'publish',
'order' => 'DESC',
);
$query = new WP_Query($args);
if ($query->have_posts()) : ?>
<?php while ($query->have_posts()) : $query->the_post(); ?>
<?php if (get_field('featured')) get_template_part('template-parts/data-parts/tables/row-wallets'); ?>
<?php
endwhile;
wp_reset_postdata();
while ($query->have_posts()) : $query->the_post(); ?>
<?php if (!get_field('featured')) get_template_part('template-parts/data-parts/tables/row-wallets'); ?>
<?php
endwhile;
wp_reset_postdata();
endif;
?>