$aster_vlogger_content_type, 'post__in' => array_filter( $aster_vlogger_content_ids ), 'orderby' => 'post__in', 'posts_per_page' => absint(4), 'ignore_sticky_posts' => true, ); // Apply category filter only if content type is 'post' if ( 'post' === $aster_vlogger_content_type && ! empty( $aster_vlogger_services_category ) ) { $args['category_name'] = $aster_vlogger_services_category; } $args = apply_filters( 'aster_vlogger_service_section_args', $args ); aster_vlogger_render_service_section( $args ); /** * Render Service Section. */ function aster_vlogger_render_service_section( $args ) { ?>

have_posts() ) : ?>
have_posts() ) : $aster_vlogger_query->the_post(); ?>
'; } ?>