post_content) !== 0): ?>

post_content; ?>

post_excerpt) !== 0 && !strposa($thumb->post_excerpt, ['instag', 'faceb', 'инстаг'])): ?> ©post_excerpt)); ?>
Избранные статьи в telegram-канале ProfileJournal Оперативные и важные новости в нашем telegram-канале Профиль-News
Больше интересного на канале Дзен-Профиль
*/ ?>
Скачайте мобильное приложение и читайте журнал "Профиль" бесплатно:
*/ ?>
Самое читаемое
ID; $news = get_posts( array( 'post_type' => array('anew'), 'posts_per_page' => 10 ) ); $newsToPrint = array(); $l = 0; foreach ($news as $new): if(!has_tag(103565, $new->ID)): $l++; array_push($newsToPrint, $new->ID); ?> post_category[0]; $top = (array)json_decode(get_option('ppp_options')); usort($top, function($a, $b) {return get_the_date("Ymd", $a->id) < get_the_date("Ymd", $b->id);}); $has_with_tag = false; /*$featured = $wpdb->get_results("select post_id as `id`, 0 as `count` from $wpdb->postmeta where meta_value != '0' and meta_key = 'featured_post_promotion' order by meta_value DESC ", OBJECT); if (count($featured) != 0) { array_unshift($top, $featured[0]); }*/ $move = $wpdb->get_results("select post_id as id, 9999 as `count` from wp_postmeta where `meta_key` = 'featured_post_promotion' and `meta_value` = 1 order by meta_id desc limit 1", OBJECT); if(count($move) != 0){ array_unshift($top, $move[0]); } foreach ($top as $item): $i++; $hide = get_post_meta($item->id, 'popular_hide', true); if($hide !== "" || in_array($item->id, $newsToPrint)){ continue; } if(has_tag(7840, $item->id)){ if($has_with_tag === true){ continue; } $has_with_tag = true; } $post = get_post($item->id); ?>
Самое читаемое
ID; $current_category = $post->post_category[0]; $top = (array)json_decode(get_option('ppp_options')); usort($top, function($a, $b) {return property_exists($a, 'id') && property_exists($b, 'id') ? get_the_date("Ymd", $a->id) < get_the_date("Ymd", $b->id) : false;}); $has_with_tag = false; /*$featured = $wpdb->get_results("select post_id as `id`, 0 as `count` from $wpdb->postmeta where meta_value != '0' and meta_key = 'featured_post_promotion' order by meta_value DESC ", OBJECT); if (count($featured) != 0) { array_unshift($top, $featured[0]); }*/ $move = $wpdb->get_results("select post_id as id, 9999 as `count` from wp_postmeta where `meta_key` = 'featured_post_promotion' and `meta_value` = 1 order by meta_id desc limit 1", OBJECT); if(get_current_user_id() === 1) { if (count($move) != 0) { //array_unshift($top, $move[0]); array_splice($top, 1, 0, $move); } } $zn = has_category(104807, get_queried_object_id()); $top = array_slice($top, 0, 6); foreach ($top as $item): $i++; if (!property_exists($item, 'id')){ continue; } $hide = get_post_meta($item->id, 'popular_hide', true); if($hide !== ""){ continue; } if($zn && has_tag(103565, $item->id)){ continue; } if(has_tag(7840, $item->id)){ if($has_with_tag === true){ continue; } $has_with_tag = true; } $post = get_post($item->id); if((date("U") - date("U", strtotime($post->post_date))) > 48*60*60 && !get_post_meta($item->id, 'featured_post_promotion', true)){ continue; } ?>
'; } else { if (!defined('MAX_PATH')) { define('MAX_PATH', '/var/www/revive'); } if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) { if (!isset($phpAds_context)) { $phpAds_context = array(); } $phpAds_raw = view_local('', 2, 0, 0, '', '', '0', $phpAds_context, ''); echo $phpAds_raw['html']; } } ?>
cat_ID; if (((int)get_option('show_ad') == 1) && $category_id !== 8529 && get_the_category(get_queried_object_id())[0]->term_id !== 8529): ?>
ID)); $postcat = $postcat['primary_category']; //cache_id="' . wp_is_mobile() . crc32('content-page-article') . get_queried_object_id() . '" ?>
"/>

post_content) !== 0): ?>

post_content; ?>

post_excerpt) !== 0 && !strposa($thumb->post_excerpt, ['instag', 'faceb', 'инстаг'])): ?> ©post_excerpt)); ?>
array(get_post_type())), get_the_ID(), true); } ?>
Избранные статьи в telegram-канале ProfileJournal Оперативные и важные новости в нашем telegram-канале Профиль-News
Больше интересного на канале Дзен-Профиль
Скачайте мобильное приложение и читайте журнал "Профиль" бесплатно:
*/ ?>
term_id . '" button_label="Загрузить еще" posts_per_page="14" scroll_distance="50" container_type="div" post__not_in="' . get_queried_object_id() . '"]'; ?>