id="main-area">
and tag with necessary attributes.
echo $blogcentral_header;
// Now display all posts by author.
while ( have_posts() ) {
// Reset variables
$blogcentral_img_wrap_class = $blogcentral_media_wrap_style = $blogcentral_meta_wrap_class =
$blogcentral_meta_wrap_style = $blogcentral_extra_li_class = $extra_li_attrs = $blogcentral_media = '';
the_post();
// Get post meta
$post_id = $wp_query->post->ID;
$blogcentral_post_meta = '';
global $fourbzcore_plugin;
if ( isset( $fourbzcore_plugin ) && method_exists( $fourbzcore_plugin, 'get_post_meta' ) ) {
$blogcentral_post_meta = $fourbzcore_plugin->get_post_meta( $post_id );
}
$blogcentral_post_opts = array_merge( $blogcentral_layout_opts, array( $blogcentral_post_meta ) );
// Html fragments for classes and styles to be added to each post item
$blogcentral_post_opts = blogcentral_construct_inner_classes_styles( $blogcentral_post_opts );
// Add class for sticky post
if ( is_sticky() && ! empty( $posts_general['sticky_display'] ) ) {
$blogcentral_post_opts['blogcentral_extra_li_class'] .= ' blogcentral-sticky';
}
$format = get_post_format();
if ( $format && 'status' !== $format && 'chat' !== $format && 'aside' !== $format ) {
$format = '-' . $format;
} else {
$format = '';
}
// Get the thumbnail if has one.
$blogcentral_thumb = '';
if ( has_post_thumbnail() ) :
$blogcentral_thumb = get_the_post_thumbnail( $post_id, 'full' );
endif;
/**
* Template for post type content.
*/
include( locate_template( 'content' . $format . '.php', false, false ) );
} // End while
// Output matching ending tags for the
wrapper and
- tags
echo $blogcentral_ender . $blogcentral_wrapper[1];
// Output page navigation
if ( 1 < $wp_query->max_num_pages ) {
blogcentral_traditional_posts_nav();
}
} // End if have_posts().
?>