File: /var/www/vhosts/greenclinic.kz/newsite/wp-content/themes/green-clinic/single-vacancies.php
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package asds
*/
//$categories = get_the_category( $the_post );
//$categories_name = $categories[0]->name;
//$categories_id = $categories[0]->term_id;
//$categories_slug = $categories[0]->slug;
$the_post = get_the_ID();
$theme_uri = get_template_directory_uri();
get_header();
?>
<?php get_template_part( 'template-parts/content_header', 'none' ); ?>
<?php
$date = get_field('date');
$text = get_field('text');
?>
<?php while(have_posts()): the_post(); ?>
<section class="section doctor">
<div class="container">
<div class="vac_date"><p><strong><?php
// Get the current language
$current_language = wpm_get_language();
// Output the appropriate translation based on the current language
if ($current_language == 'ru') {
echo 'Дата публикации';
} elseif ($current_language == 'kz') {
echo 'Жарияланған күні';
} else {
echo 'Date of publication'; // Default to Russian or the original language
}
?>:</strong> <?php echo esc_html( $date ); ?></p></div>
<div class="vac_text"><?php echo $text ?></div>
</div>
</section>
<?php endwhile; ?>
<?php get_template_part( 'blocks/blocks' ); ?>
<?php get_footer(); ?>