function wpv_ajaxed_post_portfolio() { if (wpv_is_reduced_response()) { echo 'title|'; WpvTemplates::site_title(); wpv_reduced_delim(); echo 'hsidebars|'; $header_placed = wpv_get_header_sidebars(); wpv_reduced_delim(); echo 'ptitle|'; WpvTemplates::page_header($header_placed); wpv_reduced_delim(); echo 'breadcrumbs|'; WpvTemplates::breadcrumbs(); wpv_reduced_delim(); echo 'content|'; } }
$cats = get_the_category(); foreach ($cats as $cat) { $terms[] = $cat->term_id; } ?> <div class="related-posts"> <div class="clearfix"> <div class="grid-1-1"> <?php echo apply_filters('wpv_related_posts_title', '<h2 class="related-content-title">' . wpv_get_option('related-posts-title') . '</h3>'); ?> <?php echo WPV_Blog::shortcode(array('count' => 8, 'column' => 4, 'cat' => $terms, 'layout' => 'scroll-x', 'show_content' => true, 'post__not_in' => get_the_ID())); ?> </div> </div> </div> <?php } if (!wpv_is_reduced_response()) { ?> </div> <?php } } } if (!wpv_is_reduced_response()) { get_footer(); } else { wpv_reduced_footer(); }