get_settings_for_display();
global $post;
?>
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' => 4,
'ignore_sticky_posts' => 1,
);
$my_query = new WP_Query($args);
if ($my_query->have_posts()) {
while ($my_query->have_posts()) {
$my_query->the_post();
?>
-
' . esc_html__('No related posts found', 'abcbiz-addons') . '';
}
wp_reset_query();
}
} else {
echo '- ' . esc_html__('No post available.', 'abcbiz-addons') . '
';
}
$post = $orig_post;
?>