This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
2015-08-12 15:21:46 +00:00
|
|
|
<?php while (have_posts()) : the_post(); ?>
|
2016-01-04 13:34:15 +00:00
|
|
|
|
2015-08-12 15:21:46 +00:00
|
|
|
<?php if (!is_sticky()) continue; ?>
|
2016-01-04 13:34:15 +00:00
|
|
|
|
|
|
|
<!-- ******************* The Sticky Area ******************* -->
|
|
|
|
<div class="wrapper" id="wrapper-sticky">
|
|
|
|
<div class="container">
|
2016-03-09 09:16:22 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<?php
|
|
|
|
$sticky = get_option( 'sticky_posts' );
|
|
|
|
$args = array(
|
|
|
|
'posts_per_page' => 1,
|
|
|
|
'post__in' => $sticky,
|
|
|
|
'ignore_sticky_posts' => 1
|
|
|
|
);
|
|
|
|
$query = new WP_Query( $args );
|
|
|
|
if ( isset($sticky[0]) ) {
|
|
|
|
get_template_part( 'content', get_post_format() );
|
|
|
|
}
|
|
|
|
wp_reset_query();
|
|
|
|
?>
|
|
|
|
</div>
|
2016-01-04 13:34:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-01-22 13:02:32 +00:00
|
|
|
</div><!-- #wrapper-sticky-->
|
2016-01-04 13:34:15 +00:00
|
|
|
|
2015-08-12 15:21:46 +00:00
|
|
|
<?php endwhile; ?>
|
|
|
|
|