Include featured posts in footer of single

This commit is contained in:
AlxMedia 2022-09-10 15:04:41 +02:00
parent d2210daebb
commit 0615a3a4b8
2 changed files with 4 additions and 2 deletions

View file

@ -12,7 +12,7 @@ $featured = new WP_Query(
);
?>
<?php if ( is_home() && !is_paged() && ( get_theme_mod('featured-posts-count','3') !='0') && $featured->have_posts() ): // Show if posts are not 0 ?>
<?php if ( ( get_theme_mod('featured-posts-count','3') !='0') && $featured->have_posts() ): // Show if posts are not 0 ?>
<div class="slick-featured-wrap-outer">
<div class="slick-featured-wrap">

View file

@ -59,7 +59,9 @@
</article>
<?php endwhile; ?>
<?php get_template_part('inc/featured'); ?>
</div><!--/.content-->
<?php get_sidebar(); ?>