HEX
Server: Apache
System: Linux webm006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/laretediclo/wp-content/themes/kicker-child/template_pagina_aziende.php
<?php /* Template Name: LRC template pagina aziende */
get_header(); ?>
<div id="LRC_banner_article_before_content">
    <div class="LRC_banner_desktop">
        <?php echo pods('banner')->row['banner_before_content_desktop']; ?>
    </div>
    <div class="LRC_banner_tablet">
        <?php echo pods('banner')->row['banner_before_content_tablet']; ?>
    </div>
    <div class="LRC_banner_mobile">
        <?php echo pods('banner')->row['banner_before_content_mobile']; ?>
    </div>
</div>
<?php
while ( have_posts() ) {
	the_post();

	get_template_part( apply_filters( 'kicker_filter_get_template_part', 'templates/content', 'page' ), 'page' );

	// If comments are open or we have at least one comment, load up the comment template.
	if ( ! is_front_page() && ( comments_open() || get_comments_number() ) ) {
		comments_template();
	}
} ?>

<h3>Settori aziende</h3>


<?php
       $args = array(
        'taxonomy' => 'argomento_trattato',
        'orderby' => 'name',
        'order' => 'ASC',
        'parent' => 0
      );
      $categories = get_categories($args);
       echo '<div class="LRC_link_list_wrap">';

       foreach ($categories as $category) {
         $url = get_term_link($category);?>

            <a class="LRC_link" href="<?php echo $url; ?>">
                <span><?php echo $category->name; ?></span>
            </a>
         <?php
       }
       echo '</div>';
   ?>

<h3>Ultime aziende inserite</h3>

<?php 
    $the_query = new WP_Query(array(
        'post_type' => 'azienda',
        'orderby' => 'id',
        'order' => 'DESC',
        'posts_per_page' => 30
    ));
    if ($the_query->have_posts()) : ?>
        <div class="LRC_link_list_wrap">
            <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
                <a class="LRC_link" href="<?php the_permalink(); ?>">
                    <span><?php the_title(); ?></span>
                </a>
            <?php endwhile; ?>
            <?php wp_reset_postdata(); ?>
        </div>
<?php endif; ?>

<div id="LRC_banner_article_after_content">
    <div class="LRC_banner_desktop">
        <?php echo pods('banner')->row['banner_after_content_desktop']; ?>
    </div>
    <div class="LRC_banner_mobile">
        <?php echo pods('banner')->row['banner_after_content_mobile']; ?>
    </div>
</div>
<?php
get_footer();