HEX
Server: Apache
System: Linux srv-plesk28.ps.kz 5.14.0-284.18.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 29 17:06:27 EDT 2023 x86_64
User: greencl1 (10085)
PHP: 8.1.33
Disabled: apache_setenv,dl,eval,exec,openlog,passthru,pcntl_exec,pcntl_fork,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,socket_create,socket_create_listen,socket_create_pair,syslog,system,socket_listen,stream_socket_server
Upload Files
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(); ?>