@php $permalink = get_post_permalink(); $excerpt = get_the_excerpt(); $category = get_the_category(); $postID = get_the_id(); $chooseCategory = get_field('cat_priority', $postID); // error_log(json_encode($chooseCategory)); $category = get_the_category(); $finalCategory = $category[0]; if (!is_null($chooseCategory) && $chooseCategory !== 'no') { foreach ($category as $cat) { // error_log(json_encode($cat->slug)); if (strpos($chooseCategory, $cat->slug) !== false){ $finalCategory = $cat; break; } } } $categoryEnID = apply_filters( 'wpml_object_id', $finalCategory->term_id, 'category', true, 'en-gb'); do_action('disable_wpml_auto_id'); $enCategory = get_category($categoryEnID); do_action('enable_wpml_auto_id'); @endphp
@if ($enCategory->slug != 'uncategorized-en-gb')
{{ $finalCategory->cat_name }}
@endif

{!! get_the_title() !!}

@php $postDate = get_the_date('Y.m.d'); $limitDate = '2020.06.11'; @endphp @if ($postDate > $limitDate)
@endif