Blog Posts
> 'name',
'order' => 'ASC',
'hide_empty' => true,
);
if ( $is_news_group ) {
$args['include'] = $news_categories;
} else {
$args['exclude'] = $news_categories;
}
$categories = get_categories($args);
$current_cat_id = 0;
if (is_category()) {
$queried = get_queried_object();
if (!empty($queried) && !empty($queried->term_id)) {
$current_cat_id = (int) $queried->term_id;
}
}
foreach ($categories as $category) {
echo '
. selected($current_cat_id, (int) $category->term_id, false)
. '>' . esc_html($category->name) . '';
}
?>
'posts_per_page' => 12,
'category__not_in' => array(12,13,14),
'paged' => $paged,
);
if (!empty($search_term)) {
$args['s'] = $search_term;
}
$query = new WP_Query($args);
}
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
ID)); ?>
ID));
if(get_field('link_url',$post->ID)) {
$link_url = get_field('link_url',$post->ID);
}?>
' style="position: absolute; bottom: 10px;">Read More




