';
}
if ($theme == "winter") {
echo '
';
}
// Start the loop.
while (have_posts()) : the_post();
// Include the single post content template.
bdp_get_template('single/' . $theme . '.php');
do_action('bd_single_design_format_function', $bdp_settings, $alter_class);
if (isset($bdp_settings['display_navigation']) && $bdp_settings['display_navigation'] == 1) {
// Previous/next post navigation.
?>
ID);
if ($categories) {
$category_ids = array();
foreach ($categories as $individual_category)
$category_ids[] = $individual_category->term_id;
$args = array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'posts_per_page' => $post_perpage // Number of related posts that will be displayed. 'caller_get_posts' => 1,
);
}
} elseif ($related_post_by == "tag") {
global $post;
$tags = wp_get_post_tags($post->ID);
if ($tags) {
$tag_ids = array();
foreach ($tags as $individual_tag)
$tag_ids[] = $individual_tag->term_id;
$args = array(
'tag__in' => $tag_ids,
'post__not_in' => array($post->ID),
'posts_per_page' => $post_perpage // Number of related posts to display.
);
}
}
$my_query = new wp_query($args);
if ($my_query->have_posts()) {
?>
';
}
?>
s