adding correct content-single-item class
This commit is contained in:
parent
89a1b3f9d8
commit
188af25210
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="content-single">
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="content-single-item">
|
||||||
|
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
|
|
||||||
|
|
41
sticky.php
41
sticky.php
|
@ -1,24 +1,27 @@
|
||||||
<?php while (have_posts()) : the_post(); ?>
|
<?php while (have_posts()) : the_post(); ?>
|
||||||
|
|
||||||
<?php if (!is_sticky()) continue; ?>
|
<?php if (!is_sticky()) continue; ?>
|
||||||
<!-- ******************* The Sticky Area ******************* -->
|
|
||||||
<div class="wrapper" id="wrapper-sticky">
|
<!-- ******************* The Sticky Area ******************* -->
|
||||||
<div class="container">
|
<div class="wrapper" id="wrapper-sticky">
|
||||||
<div class="col-md-12">
|
<div class="container">
|
||||||
<?php
|
<div class="col-md-12">
|
||||||
$sticky = get_option( 'sticky_posts' );
|
<?php
|
||||||
$args = array(
|
$sticky = get_option( 'sticky_posts' );
|
||||||
'posts_per_page' => 1,
|
$args = array(
|
||||||
'post__in' => $sticky,
|
'posts_per_page' => 1,
|
||||||
'ignore_sticky_posts' => 1
|
'post__in' => $sticky,
|
||||||
);
|
'ignore_sticky_posts' => 1
|
||||||
$query = new WP_Query( $args );
|
);
|
||||||
if ( isset($sticky[0]) ) {
|
$query = new WP_Query( $args );
|
||||||
get_template_part( 'content', get_post_format() );
|
if ( isset($sticky[0]) ) {
|
||||||
}
|
get_template_part( 'content', get_post_format() );
|
||||||
wp_reset_query();
|
}
|
||||||
?>
|
wp_reset_query();
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
|
|
||||||
|
|
Reference in New Issue