$n_of_content_post,
'paged' => $paged,
'order' => $order,
'orderby' => $orderby,
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'product_cat',
'field' => 'term_id',
'terms' => $content_posts_categories,
'operator' => empty($content_posts_categories) ? 'EXISTS': 'IN',
),
array(
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $content_posts_categories,
'operator' => empty($content_posts_categories) ? 'EXISTS': 'IN',
),
),
);
$wp_query = new WP_Query($args);
if ($wp_query->have_posts()) { ?>
have_posts()) {
$wp_query->the_post();
$tumb_id = get_post_thumbnail_id(get_the_ID());
$thumb_url = wp_get_attachment_image_src($tumb_id, 'full');
$has_image = true;
if ($thumb_url) {
$thumb_url = $thumb_url[0];
} else {
$thumb_url = self::catch_that_image();
$has_image = $thumb_url['image_catched'];
$thumb_url = $thumb_url['src'];
}
$background_image = $thumb_url; ?>
get_param('date_enable')) { ?>
1) { ?>
max_num_pages) { ?>
max_num_pages > 2) { ?>
bottom_advertisment();
wp_reset_query(); ?>