remove sticky if nothing
This commit is contained in:
parent
c97a54c55a
commit
dd21aabb27
|
@ -15,7 +15,10 @@ get_header(); ?>
|
||||||
|
|
||||||
<?php get_template_part('hero'); ?>
|
<?php get_template_part('hero'); ?>
|
||||||
|
|
||||||
<?php get_template_part('sticky'); ?>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
|
<?php if (!is_sticky()) continue; ?>
|
||||||
|
<?php get_template_part('sticky'); ?>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<div class="wrapper" id="wrapper-index">
|
<div class="wrapper" id="wrapper-index">
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Get IDs of sticky posts
|
// Get IDs of sticky posts
|
||||||
$sticky = get_option('sticky_posts');
|
$sticky = get_option('sticky_posts');
|
||||||
|
|
Reference in New Issue