コード例 #1
0
ファイル: post-listTab.php プロジェクト: yeminhtut/new_mag
            }
            $warrior_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry square-thumb-post" data-wow-delay="0.3s">';
            $warrior_set_content .= '<div class="thumbnail">';
            // Featured image
            if (has_post_thumbnail()) {
                $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail') . '</a>';
            } else {
                $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                $warrior_set_content .= '<img src="http://placehold.it/130x130/333333/ffffff&amp;text=&nbsp;">';
                $warrior_set_content .= '</a>';
            }
            $warrior_set_content .= '</div>	';
            $warrior_set_content .= '<div class="entry-content">';
            $warrior_set_content .= '<div class="post-category"></div>';
            $warrior_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_tabs_title_limiter), '...') . '</a></h3>';
            $warrior_set_content .= warrior_post_meta();
            // display post meta
            $warrior_set_content .= '</div>';
            $warrior_set_content .= '</article>';
            if ($posts_tab_3->post_count > 1 && $i == $posts_tab_3->post_count) {
                $warrior_set_content .= '</div>';
            }
        }
        $i = $i + 1;
    }
}
wp_reset_postdata();
$warrior_set_content .= '</div>';
$warrior_set_content .= '</div>';
$warrior_set_content .= '</div>';
echo $warrior_set_content;
コード例 #2
0
    ?>
</a></h3>
				<?php 
} else {
    ?>
					<h1 class="post-title"><?php 
    the_title();
    ?>
</h1>
				<?php 
}
?>

				<div class="entry-meta">
					<?php 
warrior_post_meta();
// display post meta
?>
				</div>
			</header>
			
			<div class="entry-content">
			<?php 
if (is_single()) {
    the_content();
    // Display post pagination
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'familia') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
} else {
    the_excerpt();
}
?>
コード例 #3
0
ファイル: post-listOne.php プロジェクト: yeminhtut/new_mag
            }
            $interest_post_list_one_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry square-thumb-post" data-wow-delay="0.3s">';
            $interest_post_list_one_content .= '<div class="thumbnail">';
            // Featured image
            if (has_post_thumbnail()) {
                $interest_post_list_one_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail') . '</a>';
            } else {
                $interest_post_list_one_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                $interest_post_list_one_content .= '<img src="http://placehold.it/130x130/333333/ffffff&amp;text=&nbsp;">';
                $interest_post_list_one_content .= '</a>';
            }
            $interest_post_list_one_content .= '</div>	';
            $interest_post_list_one_content .= '<div class="entry-content">';
            $interest_post_list_one_content .= '<div class="post-category"></div>';
            $interest_post_list_one_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title()) . '</a></h3>';
            $interest_post_list_one_content .= warrior_post_meta();
            // display post meta
            $interest_post_list_one_content .= '</div>';
            $interest_post_list_one_content .= '</article>';
            if ($posts_list_1->post_count > 1 && $i == $posts_list_1->post_count) {
                $interest_post_list_one_content .= '</div>';
            }
        }
        $i = $i + 1;
    }
}
wp_reset_postdata();
$interest_post_list_one_content .= '</div>';
echo $interest_post_list_one_content;
?>
コード例 #4
0
ファイル: theme-composer.php プロジェクト: yeminhtut/new_mag
 function warrior_vc_post_tabs_shortcode($atts)
 {
     extract(shortcode_atts(array('type' => 'in_container', 'post_tabs_title' => '', 'post_tabs_options' => '', 'post_tabs_categories_1' => '', 'post_tabs_categories_2' => '', 'post_tabs_categories_3' => '', 'post_tabs_title_limiter' => '', 'post_tabs_content_limiter' => '', 'el_class' => '', 'css' => '', 'css_animation' => ''), $atts));
     // wp_enqueue_style( 'js_composer_front' );
     wp_enqueue_script('wpb_composer_front_js');
     // wp_enqueue_style('js_composer_custom_css');
     $css_class = apply_filters('VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG', vc_shortcode_custom_css_class($css, ' '));
     $css_animate_class = apply_filters('VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG', 'wow ' . $css_animation, $atts);
     $warrior_set_content = '<div id="sports" class="homepage-widget widget-type-5 warrior-tabs-widget">';
     $warrior_set_content .= '<ul class="tab-nav">';
     $warrior_set_content .= '<li><a href="javascript:void(0)" data-content="#tab-' . str_replace(" ", "", $post_tabs_categories_1) . '" title="" class="active">' . str_replace("-", "", $post_tabs_categories_1) . '</a></li>';
     $warrior_set_content .= '<li><a href="javascript:void(0)" data-content="#tab-' . str_replace(" ", "", $post_tabs_categories_2) . '" title="">' . str_replace("-", "", $post_tabs_categories_2) . '</a></li>';
     $warrior_set_content .= '<li><a href="javascript:void(0)" data-content="#tab-' . str_replace(" ", "", $post_tabs_categories_3) . '" title="">' . str_replace("-", "", $post_tabs_categories_3) . '</a></li>';
     $warrior_set_content .= '</ul>';
     $warrior_set_content .= '<div class="tabs_container">';
     $args_posts_tab_1 = array('post_type' => 'post', 'post_status' => 'publish', 'category_name' => $post_tabs_categories_1, 'ignore_sticky_posts' => 1, 'posts_per_page' => 4);
     $posts_tab_1 = new WP_Query();
     $posts_tab_1->query($args_posts_tab_1);
     if ($posts_tab_1->have_posts()) {
         $warrior_set_content .= '<div id="tab-' . str_replace(" ", "", $post_tabs_categories_1) . '" class="tab-content row post-wrapper">';
         $i = 1;
         while ($posts_tab_1->have_posts()) {
             $posts_tab_1->the_post();
             if ($i == 1) {
                 $category = get_the_category(get_the_ID());
                 // Get the ID of a given category
                 $get_cat_name = $category[0]->cat_name;
                 $category_id = get_cat_ID($get_cat_name);
                 // Get the URL of this category
                 $category_link = get_category_link($category_id);
                 $warrior_set_content .= '<div class="column column-2">';
                 $warrior_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry full-width-post" data-wow-delay="0.3s">';
                 $warrior_set_content .= '<div class="thumbnail">';
                 // Featured image
                 if (has_post_thumbnail()) {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'newmagz-large-thumbnail-2') . '</a>';
                 } else {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                     $warrior_set_content .= '<img src="http://placehold.it/393x230/333333/ffffff&amp;text=&nbsp;">';
                     $warrior_set_content .= '</a>';
                 }
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '<div class="entry-content">';
                 $warrior_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
                 $warrior_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_tabs_title_limiter), '...') . '</a></h3>';
                 $warrior_set_content .= warrior_post_meta();
                 // display post meta
                 $warrior_set_content .= '<div class="excerpt">';
                 $warrior_set_content .= '<p>' . wp_trim_words(get_the_excerpt(), absint($post_tabs_content_limiter), '...') . '</p>';
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</article>	';
                 $warrior_set_content .= '</div>';
             } else {
                 if ($posts_tab_1->post_count > 1 && $i == 2) {
                     $warrior_set_content .= '<div class="column column-2">';
                 }
                 $warrior_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry square-thumb-post" data-wow-delay="0.3s">';
                 $warrior_set_content .= '<div class="thumbnail">';
                 // Featured image
                 if (has_post_thumbnail()) {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail') . '</a>';
                 } else {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                     $warrior_set_content .= '<img src="http://placehold.it/130x130/333333/ffffff&amp;text=&nbsp;">';
                     $warrior_set_content .= '</a>';
                 }
                 $warrior_set_content .= '</div>	';
                 $warrior_set_content .= '<div class="entry-content">';
                 $warrior_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
                 $warrior_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_tabs_title_limiter), '...') . '</a></h3>';
                 $warrior_set_content .= warrior_post_meta();
                 // display post meta
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</article>';
                 if ($posts_tab_1->post_count > 1 && $i == $posts_tab_1->post_count) {
                     $warrior_set_content .= '</div>';
                 }
             }
             $i = $i + 1;
         }
     }
     wp_reset_postdata();
     $warrior_set_content .= '</div>';
     $args_posts_tab_2 = array('post_type' => 'post', 'post_status' => 'publish', 'category_name' => $post_tabs_categories_2, 'ignore_sticky_posts' => 1, 'posts_per_page' => 4);
     $posts_tab_2 = new WP_Query();
     $posts_tab_2->query($args_posts_tab_2);
     if ($posts_tab_2->have_posts()) {
         $warrior_set_content .= '<div id="tab-' . str_replace(" ", "", $post_tabs_categories_2) . '" class="tab-content row post-wrapper">';
         $i = 1;
         while ($posts_tab_2->have_posts()) {
             $posts_tab_2->the_post();
             if ($i == 1) {
                 $category = get_the_category(get_the_ID());
                 // Get the ID of a given category
                 $get_cat_name = $category[0]->cat_name;
                 $category_id = get_cat_ID($get_cat_name);
                 // Get the URL of this category
                 $category_link = get_category_link($category_id);
                 $warrior_set_content .= '<div class="column column-2">';
                 $warrior_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry full-width-post" data-wow-delay="0.3s">';
                 $warrior_set_content .= '<div class="thumbnail">';
                 // Featured image
                 if (has_post_thumbnail()) {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'newmagz-large-thumbnail-2') . '</a>';
                 } else {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                     $warrior_set_content .= '<img src="http://placehold.it/393x230/333333/ffffff&amp;text=&nbsp;">';
                     $warrior_set_content .= '</a>';
                 }
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '<div class="entry-content">';
                 $warrior_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
                 $warrior_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_tabs_title_limiter), '...') . '</a></h3>';
                 $warrior_set_content .= warrior_post_meta();
                 // display post meta
                 $warrior_set_content .= '<div class="excerpt">';
                 $warrior_set_content .= '<p>' . wp_trim_words(get_the_excerpt(), absint($post_tabs_content_limiter), '...') . '</p>';
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</article>	';
                 $warrior_set_content .= '</div>';
             } else {
                 if ($posts_tab_2->post_count > 1 && $i == 2) {
                     $warrior_set_content .= '<div class="column column-2">';
                 }
                 $warrior_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry square-thumb-post" data-wow-delay="0.3s">';
                 $warrior_set_content .= '<div class="thumbnail">';
                 // Featured image
                 if (has_post_thumbnail()) {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail') . '</a>';
                 } else {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                     $warrior_set_content .= '<img src="http://placehold.it/130x130/333333/ffffff&amp;text=&nbsp;">';
                     $warrior_set_content .= '</a>';
                 }
                 $warrior_set_content .= '</div>	';
                 $warrior_set_content .= '<div class="entry-content">';
                 $warrior_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
                 $warrior_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_tabs_title_limiter), '...') . '</a></h3>';
                 $warrior_set_content .= warrior_post_meta();
                 // display post meta
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</article>';
                 if ($posts_tab_2->post_count > 1 && $i == $posts_tab_2->post_count) {
                     $warrior_set_content .= '</div>';
                 }
             }
             $i = $i + 1;
         }
     }
     wp_reset_postdata();
     $warrior_set_content .= '</div>';
     $args_posts_tab_3 = array('post_type' => 'post', 'post_status' => 'publish', 'category_name' => $post_tabs_categories_3, 'ignore_sticky_posts' => 1, 'posts_per_page' => 4);
     $posts_tab_3 = new WP_Query();
     $posts_tab_3->query($args_posts_tab_3);
     if ($posts_tab_3->have_posts()) {
         $warrior_set_content .= '<div id="tab-' . str_replace(" ", "", $post_tabs_categories_3) . '" class="tab-content row post-wrapper">';
         $i = 1;
         while ($posts_tab_3->have_posts()) {
             $posts_tab_3->the_post();
             if ($i == 1) {
                 $category = get_the_category(get_the_ID());
                 // Get the ID of a given category
                 $get_cat_name = $category[0]->cat_name;
                 $category_id = get_cat_ID($get_cat_name);
                 // Get the URL of this category
                 $category_link = get_category_link($category_id);
                 $warrior_set_content .= '<div class="column column-2">';
                 $warrior_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry full-width-post" data-wow-delay="0.3s">';
                 $warrior_set_content .= '<div class="thumbnail">';
                 // Featured image
                 if (has_post_thumbnail()) {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'newmagz-large-thumbnail-2') . '</a>';
                 } else {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                     $warrior_set_content .= '<img src="http://placehold.it/393x230/333333/ffffff&amp;text=&nbsp;">';
                     $warrior_set_content .= '</a>';
                 }
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '<div class="entry-content">';
                 $warrior_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
                 $warrior_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_tabs_title_limiter), '...') . '</a></h3>';
                 $warrior_set_content .= warrior_post_meta();
                 // display post meta
                 $warrior_set_content .= '<div class="excerpt">';
                 $warrior_set_content .= '<p>' . wp_trim_words(get_the_excerpt(), absint($post_tabs_content_limiter), '...') . '</p>';
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</article>	';
                 $warrior_set_content .= '</div>';
             } else {
                 if ($posts_tab_3->post_count > 1 && $i == 2) {
                     $warrior_set_content .= '<div class="column column-2">';
                 }
                 $warrior_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry square-thumb-post" data-wow-delay="0.3s">';
                 $warrior_set_content .= '<div class="thumbnail">';
                 // Featured image
                 if (has_post_thumbnail()) {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail') . '</a>';
                 } else {
                     $warrior_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                     $warrior_set_content .= '<img src="http://placehold.it/130x130/333333/ffffff&amp;text=&nbsp;">';
                     $warrior_set_content .= '</a>';
                 }
                 $warrior_set_content .= '</div>	';
                 $warrior_set_content .= '<div class="entry-content">';
                 $warrior_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
                 $warrior_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_tabs_title_limiter), '...') . '</a></h3>';
                 $warrior_set_content .= warrior_post_meta();
                 // display post meta
                 $warrior_set_content .= '</div>';
                 $warrior_set_content .= '</article>';
                 if ($posts_tab_3->post_count > 1 && $i == $posts_tab_3->post_count) {
                     $warrior_set_content .= '</div>';
                 }
             }
             $i = $i + 1;
         }
     }
     wp_reset_postdata();
     $warrior_set_content .= '</div>';
     $warrior_set_content .= '</div>';
     $warrior_set_content .= '</div>';
     return $warrior_set_content;
 }
コード例 #5
0
ファイル: post-list2.php プロジェクト: yeminhtut/new_mag
        // Get the URL of this category
        $category_link = get_category_link($category_id);
        $partial_two_set_content .= '<div class="column column-1">';
        $partial_two_set_content .= '<article class="' . esc_attr($css_animate_class) . ' hentry full-width-post left-thumbnail" data-wow-delay="0.3s">';
        $partial_two_set_content .= '<div class="thumbnail">';
        // Featured image
        if (has_post_thumbnail()) {
            $partial_two_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'newmagz-large-thumbnail-2') . '</a>';
        } else {
            $partial_two_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
            $partial_two_set_content .= '<img src="http://placehold.it/393x230/333333/ffffff&amp;text=&nbsp;">';
            $partial_two_set_content .= '</a>';
        }
        $partial_two_set_content .= '</div>';
        $partial_two_set_content .= '<div class="entry-content">';
        $partial_two_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
        $partial_two_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_list_2_title_limiter), '...') . '</a></h3>';
        $partial_two_set_content .= warrior_post_meta();
        // display post meta
        $partial_two_set_content .= '<div class="excerpt">';
        $partial_two_set_content .= '<p>' . wp_trim_words(get_the_excerpt(), absint($post_list_2_content_limiter), '...') . '</p>';
        $partial_two_set_content .= '</div>';
        $partial_two_set_content .= '</div>';
        $partial_two_set_content .= '</article>	';
        $partial_two_set_content .= '</div>';
    }
}
wp_reset_postdata();
$partial_two_set_content .= '</div>';
$partial_two_set_content .= '</section>';
echo $partial_two_set_content;
コード例 #6
0
ファイル: post-listTwo.php プロジェクト: yeminhtut/new_mag
        $category_id = get_cat_ID($interest_post_list_two);
        // Get the URL of this category
        $category_link = get_category_link($category_id);
        $interest_post_list_two_content .= '<div class="' . esc_attr($css_animate_class) . ' carousel-item" data-wow-delay="0.3s">';
        $interest_post_list_two_content .= '<article class="hentry full-width-post">';
        $interest_post_list_two_content .= '<div class="thumbnail">';
        // Featured image
        if (has_post_thumbnail()) {
            $interest_post_list_two_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'newmagz-medium-thumbnail-2') . '</a>';
        } else {
            $interest_post_list_two_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
            $interest_post_list_two_content .= '<img src="http://placehold.it/262x150/333333/ffffff&amp;text=&nbsp;">';
            $interest_post_list_two_content .= '</a>';
        }
        $interest_post_list_two_content .= '</div>	';
        $interest_post_list_two_content .= '<div class="entry-content">';
        $interest_post_list_two_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($interest_post_list_two) . '</a></div>	';
        $interest_post_list_two_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title()) . '</a></h3>';
        $interest_post_list_two_content .= warrior_post_meta();
        // display post meta
        $interest_post_list_two_content .= '</div>';
        $interest_post_list_two_content .= '</article>';
        $interest_post_list_two_content .= '</div>';
    }
}
wp_reset_postdata();
$interest_post_list_two_content .= '</div>';
$interest_post_list_two_content .= '</div>';
$interest_post_list_two_content .= '</div>';
$interest_post_list_two_content .= '</section>';
echo $interest_post_list_two_content;
コード例 #7
0
ファイル: post-list1.php プロジェクト: yeminhtut/new_mag
                $partial_one_set_content .= '<div class="column column-2">';
            }
            $partial_one_set_content .= '<article class="wow fadeIn animated hentry square-thumb-post" data-wow-delay="0.3s">';
            $partial_one_set_content .= '<div class="thumbnail">';
            // Featured image
            if (has_post_thumbnail()) {
                $partial_one_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">' . get_the_post_thumbnail(get_the_ID(), 'thumbnail') . '</a>';
            } else {
                $partial_one_set_content .= '<a href="' . get_the_permalink() . '" title="' . get_the_title() . '">';
                $partial_one_set_content .= '<img src="http://placehold.it/130x130/333333/ffffff&amp;text=&nbsp;">';
                $partial_one_set_content .= '</a>';
            }
            $partial_one_set_content .= '</div>	';
            $partial_one_set_content .= '<div class="entry-content">';
            $partial_one_set_content .= '<div class="post-category"><a href="' . esc_url($category_link) . '">' . esc_attr($category[0]->cat_name) . '</a></div>';
            $partial_one_set_content .= '<h3 class="post-title"><a href="' . get_the_permalink() . '">' . wp_trim_words(get_the_title(), absint($post_list_1_title_limiter), '...') . '</a></h3>';
            $partial_one_set_content .= warrior_post_meta();
            // display post meta
            $partial_one_set_content .= '</div>';
            $partial_one_set_content .= '</article>';
            if ($posts_list_1->post_count > 1 && $i == $posts_list_1->post_count) {
                $partial_one_set_content .= '</div>';
            }
        }
        $i = $i + 1;
    }
}
wp_reset_postdata();
$partial_one_set_content .= '</div>';
$partial_one_set_content .= '</section>';
echo $partial_one_set_content;