????JFIF??x?x????'
Server IP : 104.21.48.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/eaabusiness.com/wp-content/themes/yoome/templates/ |
Upload File : |
<?php global $post; $cat_list = get_the_terms($post, 'ts_portfolio_cat'); $cat_ids = array(); if( is_array($cat_list) ){ foreach( $cat_list as $cat ){ $cat_ids[] = $cat->term_id; } } $args = array( 'post_type' => $post->post_type ,'post__not_in' => array($post->ID) ,'posts_per_page' => 6 ,'fields' => 'ids' ); if( !empty($cat_ids) ){ $args['tax_query'] = array( array( 'taxonomy' => 'ts_portfolio_cat' ,'field' => 'term_id' ,'terms' => $cat_ids ) ); } $related_posts = new WP_Query($args); if( $related_posts->have_posts() ){ $post_ids = $related_posts->posts; $post_ids = implode(',', $post_ids); $shortcode_str = '[ts_portfolio include="'.$post_ids.'" title2="'.esc_attr__('RELATED PROJECTS', 'yoome').'" columns="3" is_slider="1" show_categories="0"]'; echo do_shortcode( $shortcode_str ); } wp_reset_postdata(); ?>