<?php
/**
* Template Name: Website Custom Page
*/
get_header(); ?>
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main”>
<div id=”main-banner”>
/images/banner.jpg” alt=”jamesdpdrury Examples of Work”>
<div class=”main-banner-text”><?php wp_title(”, true,”); ?></div>
</div>
<div class=”wrapper”>
<div class=”other-websites”>
<p class=”section-title”>Latest Designs</p>
<?php
$paged = (get_query_var( ‘paged’ )) ? get_query_var( ‘paged’ ) : 1;
$args = array(
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘category_name’ => ‘websites’,
‘posts_per_page’ => 4,
‘paged’ => $paged,
);
$arr_posts = new WP_Query( $args );
if ( $arr_posts->have_posts() ) :
while ( $arr_posts->have_posts() ) :
$arr_posts->the_post();
?>
<div class=”post-block”>
<article>
ID, ‘link’, true); ?>”>
<ul class=”textWithBlurredBg”>
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail();
endif;
?>
<h2><?php the_title(); ?></h2>
</article>
</div>
<?php
endwhile;
wp_pagenavi(
array(
‘query’ => $arr_posts,
)
);
endif;
?>
</div>
</div>
</main><!– .site-main –>
</div><!– .content-area –>
<?php
get_sidebar();
get_footer();
So, based on the above settings, can you advise how I can resolve the issue?
Thank you.