'post',
'post_status' => 'publish',
'ignore_sticky_posts' => true,
);
if( $slider_type === 'cat' && $slider_cat ){
$args['cat'] = $slider_cat;
$args['posts_per_page'] = -1;
}else{
$args['posts_per_page'] = $posts_per_page;
}
$qry = new WP_Query( $args );
if( $qry->have_posts() ){ ?>
have_posts() ){ $qry->the_post(); ?>
';
if( $ed_caption ){
?>
';
blossom_floral_category();
echo '
';
the_title( '
' );
?>
';
if( $blog_text ) echo '
' . esc_html( $blog_text) . '
';
if( $blog_content ) echo '
' . wp_kses_post( wpautop( $blog_content ) ). '
';
echo '
';
}
if( is_archive() ){
if( is_author() ){
$author_title = get_the_author_meta( 'display_name' );
$author_description = get_the_author_meta( 'description' );
$about_author = get_theme_mod( 'author_title', __( 'About The Author', 'blossom-floral' ) ); ?>
';
the_archive_title();
the_archive_description( '';
echo get_avatar( get_the_author_meta( 'ID' ), 30, '', 'avatar' );
blossom_floral_posted_by();
blossom_floral_posted_on();
echo '
';
echo '';
}
}
endif;
add_action( 'blossom_floral_post_entry_content', 'blossom_floral_entry_header', 10 );
if ( ! function_exists( 'blossom_floral_post_thumbnail' ) ) :
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function blossom_floral_post_thumbnail() {
$image_size = 'thumbnail';
$ed_crop_blog = get_theme_mod( 'ed_crop_blog', false );
$sidebar = blossom_floral_sidebar();
if( is_home() || is_archive() || is_search() ){
echo '';
the_post_thumbnail( $image_size, array( 'itemprop' => 'image' ) );
echo '
';
}
}
}
endif;
add_action( 'blossom_floral_before_page_entry_content', 'blossom_floral_post_thumbnail' );
add_action( 'blossom_floral_before_post_entry_content', 'blossom_floral_post_thumbnail', 10 );
if( ! function_exists( 'blossom_floral_entry_content' ) ) :
/**
* Entry Content
*/
function blossom_floral_entry_content(){
$ed_excerpt = get_theme_mod( 'ed_excerpt', true ); ?>
'
' . esc_html__( 'Pages:', 'blossom-floral' ),
'after' => '
',
) );
}else{
the_excerpt();
}
?>
__( 'Previous', 'blossom-floral' ),
'next_text' => __( 'Next', 'blossom-floral' ),
'before_page_number' => '