?> <div class="single-post single-team-post page-holder"> <?php if ($page_width != 'fullwidth') { echo '<div class="inner clearfix">'; } echo '<div class="single-team-inner">'; if (have_posts()) { while (have_posts()) { the_post(); if (has_post_thumbnail()) { echo '<div class="single-team-thumbnail">'; } waxom_post_media(); echo '</div>'; echo '<h4 class="position">' . get_post_meta(get_the_ID(), "member_position", TRUE) . '</h4>'; the_content(); } } echo '</div>'; if ($page_width != 'fullwidth') { echo '</div>'; } ?> </div> <?php get_footer();
function waxom_blog_post_content($page_layout = NULL, $blog_style = NULL, $grid_style = NULL, $masonry = NULL) { global $post; $post_format = get_post_format($post->ID); if (!$post_format) { $post_format = 'standard'; } $extra_classes = array(); $excerpt_size = 50; $grid_style = 'simple'; if (is_null($grid_style)) { $grid_style = waxom_option('blog_grid_style'); } if (is_null($blog_style)) { $blog_style = 'classic'; } if ($blog_style == "grid" || $blog_style == "timeline") { $extra_classes = array('item', 'vntd-grid-item'); $excerpt_size = 20; if (waxom_option('blog_grid_style') == 'thumb_bg') { if (!has_post_thumbnail()) { return null; } $excerpt_size = 18; } } elseif ($blog_style == "minimal") { $excerpt_size = 30; } $post_media_class = 'post-no-media'; if (has_post_thumbnail()) { $post_media_class = 'post-has-media'; } array_push($extra_classes, $post_media_class); if (!$masonry) { $masonry = waxom_option('blog_masonry'); if ($masonry == true) { $masonry = 'yes'; } } ?> <div <?php post_class($extra_classes); ?> > <div class="blog-post-wrap"> <?php if (has_post_thumbnail()) { waxom_post_media($blog_style, $page_layout, $grid_style, $masonry); } ?> <div class="blog-post-inner"> <div class="post-inner"> <!-- Post Header --> <div class="blog-head"> <h2 class="blog-post-title"> <a href="<?php echo get_permalink($post->ID); ?> "> <?php echo get_the_title($post->ID); ?> </a> </h2> </div> <!-- Post Header --> <?php waxom_post_meta(); ?> <!-- Post Details --> <div class="details"> <?php if (!is_single()) { echo waxom_excerpt($excerpt_size, true); } ?> </div> <!-- End Post Details --> </div> </div> <div class="blog-post-content-wrap"> <?php if (is_single()) { the_content(); } ?> </div> </div> </div> <?php }