HEX
Server: LiteSpeed
System: Linux standart103.isimtescil.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: byildiz (11197)
PHP: 8.2.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/byildiz.com.tr/httpdocs/wp-content/themes/lumex/template-parts/latest-posts.php
<?php
/**
 * Template part for displaying page latest posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package lumex
 */

?>

<?php

$paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;
$page_id = get_the_ID();

$settings = get_field( 'latest_posts_settings', 'options' );

$args = array(
    'post_type'			=> 'post',
    'post_status'		=> 'publish',
    'orderby'			=> $settings['sort'],
    'order'				=> $settings['order'],
    'posts_per_page'	=> $settings['limit'],
    'paged' 			=> $paged
);

$q = new \WP_Query( $args );

?>

<div class="mil-blog-section">
    <div class="mil-jcb mil-aic">
        <?php if ( $settings['title'] ) : ?>
        <h4 class="mil-head4 mil-mb30"><?php echo wp_kses_post( $settings['title'] ); ?></h4>
        <?php endif; ?>
        <div class="mil-sb-nav mil-mb30">
            <div class="mil-slider-btn mil-sb-prev mil-c-gone"><i class="fas fa-arrow-left"></i></div>
            <div class="mil-slider-btn mil-sb-next mil-c-gone"><i class="fas fa-arrow-right"></i></div>
        </div>
    </div>
    <?php if ( $q->have_posts() ) : ?>
    <div class="swiper-container mil-blog-slider-sm">
        <div class="swiper-wrapper">
            <?php while ( $q->have_posts() ) : $q->the_post(); ?>
            <div class="swiper-slide">
                <?php get_template_part( 'template-parts/content', 'latest' ); ?>
            </div>
            <?php endwhile; ?>
        </div>
    </div>
    <?php endif; wp_reset_postdata(); ?>
</div>