add moread_all

This commit is contained in:
2026-03-18 22:58:41 +03:00
parent 09ef3e1d6d
commit db4a7c7c38
13 changed files with 214 additions and 230 deletions

View File

@@ -11,7 +11,7 @@
if ($post_categories && !is_wp_error($post_categories)) {
foreach ($post_categories as $post_category) {
if ($post_category->parent == $pets_category->term_id) {
if ($post_category->parent == $pets_category->term_id OR $post_category->term_id == $pets_category->term_id ) {
$pets_cat = true;
$category_id = $post_category->term_id;
$category_name = $post_category->name;
@@ -95,7 +95,8 @@ if ( $pets_cat ){
<?else:?>
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category_name;?></a></span>
<?endif?>
, <nobr><?php the_time('j F Y, G:i');?></nobr>
<?if ( $category_name == ''){ echo ', '; } ?>
<nobr><?php the_time('j F Y, G:i');?></nobr>
</div>
<div class="post_info_sub post_info_social">
<?php include get_template_directory().'/blocks/social-share.php';?>