@php $category_id = get_the_category()[0]->cat_ID; $category_ancestors = get_ancestors( $category_id , 'category' ); if (count($category_ancestors)) { $highest_parent_id = $category_ancestors[array_key_last($category_ancestors)]; } else { $highest_parent_id = $category_id; } $top_level_category = get_category( $highest_parent_id ); @endphp

{!! get_the_title() !!} @if ($top_level_category->category_nicename == 'regional-dating') Dating @endif

@include('partials/breadcrumb') @if ($top_level_category->category_nicename != 'regional-dating') @include('partials/entry-meta') @endif
@php the_post_thumbnail( '' , ['class' => 'alignright'] ); the_content(); @endphp
@php $arrowLeft = file_get_contents( get_template_directory() . '/icons/arrow-circle-left.svg' ); $arrowRight = file_get_contents( get_template_directory() . '/icons/arrow-circle-right.svg' ); $previous_link = get_previous_post_link( '%link', $arrowLeft . ' %title', true ); $next_link = get_next_post_link( '%link', '%title ' . $arrowRight, true );; @endphp @if ($previous_link != '' || $next_link != '')

Continue Reading

{!! $previous_link !!}
{!! $next_link !!}
@endif