TERVISEKAUBAMAJA

Väsimus

TEEMAD

<?php 
$categories = get_categories(); ?>
<ul class="cats"> 
<?php foreach($categories as $category) {
   echo '<li><a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></li>';
}; ?>
</ul>

Autor Kati Torim annab sulle 5 praktilist soovitust, kuidas saad raskel ajal hoida head vaimset vormi!

<?php 

$acf_excerpt = get_field('blog_post_excerpt');
$excerpt = get_the_excerpt();
$excerpt = substr($excerpt, 0, 160);
$result = substr($excerpt, 0, strrpos($excerpt, ' '));

if ($acf_excerpt) {
  echo '<p>' . $acf_excerpt . '[...]</p>';
} else { 
  echo '<p>' . $result . '[...]</p>';
}

;?>
Väsimuse ja energiapuuduse peamised tekitajad

Väsimuse ja energiapuuduse peamised tekitajad

<?php 

$acf_excerpt = get_field('blog_post_excerpt');
$excerpt = get_the_excerpt();
$excerpt = substr($excerpt, 0, 160);
$result = substr($excerpt, 0, strrpos($excerpt, ' '));

if ($acf_excerpt) {
  echo '<p>' . $acf_excerpt . '[...]</p>';
} else { 
  echo '<p>' . $result . '[...]</p>';
}

;?>