name; $compact_one_work_category_1_slug = $cat_obj->slug; $args = array( 'numberposts' => -1, 'offset' => 0, 'category_name' => $compact_one_work_category_1_name, 'orderby' => 'post_date', 'order' => 'ASC', 'post_type' => 'post', 'post_status' => 'publish', 'suppress_filters' => false ); $compact_one_work_category_1_posts = get_posts( $args ); } $compact_one_work_category_2_id = get_theme_mod('compact_one_work_category_2'); if(!empty($compact_one_work_category_2_id)) { $cat_obj2 = get_term( $compact_one_work_category_2_id, 'category' ); $compact_one_work_category_2_name = $cat_obj2->name; $compact_one_work_category_2_slug = $cat_obj2->slug; $args2 = array( 'numberposts' => -1, 'offset' => 0, 'category_name' => $compact_one_work_category_2_name, 'orderby' => 'post_date', 'order' => 'ASC', 'post_type' => 'post', 'post_status' => 'publish', 'suppress_filters' => false ); $compact_one_work_category_2_posts = get_posts( $args2 ); } $compact_one_work_category_3_id = get_theme_mod('compact_one_work_category_3'); if(!empty($compact_one_work_category_3_id)) { $cat_obj3 = get_term( $compact_one_work_category_3_id, 'category' ); $compact_one_work_category_3_name = $cat_obj3->name; $compact_one_work_category_3_slug = $cat_obj3->slug; $args3 = array( 'numberposts' => -1, 'offset' => 0, 'category_name' => $compact_one_work_category_3_name, 'orderby' => 'post_date', 'order' => 'ASC', 'post_type' => 'post', 'post_status' => 'publish', 'suppress_filters' => false ); $compact_one_work_category_3_posts = get_posts( $args3 ); } ?>


ID, 'category'); foreach( $test as $singleterm ) { $value_new[]=$singleterm->slug; } $post_id = $port2->ID; $tw_portfolio_img = wp_get_attachment_url( get_post_thumbnail_id( $post_id ) ); $tw_portfolio_title = get_the_title( $post_id ); $tw_portfolio_desc = $port2->post_content; ?>
<?php echo esc_attr($compact_one_profile_1_heading); ?>

<?php echo esc_attr($compact_one_profile_2_heading); ?>

<?php echo esc_attr($compact_one_profile_3_heading); ?>

<?php echo esc_attr($compact_one_profile_4_heading); ?>