Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.112.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : archive.php
<?php
/**
 * The template for displaying archive pages.
 *
 * @package Veres
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

// Default title is null
$page_title = NULL;
// Homepage - display blog description if not a static page
if ( is_front_page() && ! is_singular( 'page' ) ) {

    if ( get_bloginfo( 'description' ) ) {
        $page_title = get_bloginfo( 'description' );
    } else {
        $page_title = esc_html__( 'Recent Posts', 'veres' );
    }

    // Homepage posts page
}
elseif ( is_home() && ! is_singular( 'page' ) ) {
    $page_title = get_the_title( get_option( 'page_for_posts', true ) );
}
else{
    $page_title = get_the_archive_title();
}

$page_description = get_the_archive_description();


?>
<main class="site-main" role="main">
	<?php if ( apply_filters( 'veres/filter/enable_page_title', true ) && ( !empty($page_title)  || !empty( $page_description ) ) ) : ?>
		<header class="page-header page-header--default">
            <div class="container page-header-inner">
                <?php

                if(!empty($page_title)){
                    echo sprintf('<h1 class="entry-title">%1$s</h1>', $page_title);
                }

                if(!empty($page_description)){
                    echo sprintf('<div class="archive-description">%1$s</div>', $page_description);
                }

                ?>
            </div>
		</header>
	<?php endif; ?>

    <div id="site-content-wrap" class="container">
        <?php get_sidebar(); ?>
        <div class="site-content--default">
            <?php

            if ( have_posts() ) {

                echo '<div id="blog-entries">';

                // Loop through posts
                while ( have_posts() ) {

                    the_post();

                    get_template_part( 'partials/default/content', get_post_type() );

                }

                echo '</div>';

                // Display post pagination
	            the_posts_pagination([
		            'prev_text'    => __( '&laquo;', 'veres' ),
		            'next_text'    => __( '&raquo;', 'veres' ),
	            ]);

                wp_reset_postdata();

            }
            else{
                get_template_part( 'partials/default/none');
            }

            ?>
        </div>
    </div>
</main>
© 2025 XylotrechusZ