add moread_all
This commit is contained in:
@@ -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';?>
|
||||
|
||||
Reference in New Issue
Block a user