403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/successkpi/wp-content/themes/successkpi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/successkpi/wp-content/themes/successkpi//taxonomy-resource_category.php
<?php
require_once get_stylesheet_directory() . '/blocks/resource-tiles-block/template.php';
require_once get_stylesheet_directory() . '/blocks/resource-tiles-block/query.php';
get_header();
$current_term = get_queried_object();
$block_id = 'resource-taxonomy';
/**
 * IMPORTANT:
 * Replace these CPT names with your actual CPT slugs.
 */
$post_types = [
    'post',
    'blog',
    'webinars',
    'reports',
    'guides',
    'videos',
    'success-stories'
];
$paged = max(1, get_query_var('paged'));
$resource_query = get_resource_query(
    $post_types,
    9,
    $paged,
    'resource_category',
    $current_term->term_id
);
?>
<section class="blogs-card-grid-block sk-section-spacing"
    id="block-<?php echo esc_attr($block_id); ?>"
    data-ajax-url="<?php echo esc_url(admin_url('admin-ajax.php')); ?>"
data-post-type='<?php echo esc_attr(wp_json_encode($post_types)); ?>' 
   data-per-page="9"
    data-taxonomy="resource_category"
    data-term-id="<?php echo esc_attr($current_term->term_id); ?>">
    <div class="container">
        <div class="taxonomy-header">
            <h1>
                <?php echo esc_html($current_term->name); ?>
            </h1>
            <?php if (!empty($current_term->description)) : ?>
                <p>
                    <?php echo esc_html($current_term->description); ?>
                </p>
            <?php endif; ?>
        </div>
        <div class="blog-cards" id="cards-container-<?php echo esc_attr($block_id); ?>">
            <?php if ($resource_query->have_posts()) : ?>
                <?php while ($resource_query->have_posts()) : $resource_query->the_post(); ?>
                    <div class="blog-card">
                        <a href="<?php the_permalink(); ?>" class="card-thumb-link">
                            <div class="card-thumb">
                                <?php if (has_post_thumbnail()) : ?>
                                    <?php the_post_thumbnail('medium_large'); ?>
                                <?php endif; ?>
                            </div>
                        </a>
                        <div class="card-body">
                            <a href="<?php the_permalink(); ?>" class="resource-type-tag">
                                <?php
                                $terms = get_the_terms(get_the_ID(), 'resource_category');
                                if (!empty($terms) && !is_wp_error($terms)) {
                                    echo esc_html($terms[0]->name);
                                }
                                ?>
                            </a>
                            <h3 class="card-title">
                                <a href="<?php the_permalink(); ?>">
                                    <?php the_title(); ?>
                                </a>
                            </h3>
                            <p class="card-desc">
                                <?php echo esc_html(wp_trim_words(get_the_excerpt(), 18)); ?>
                            </p>
                            <a href="<?php the_permalink(); ?>" class="card-read-more">
                                Read More
                            </a>
                        </div>
                    </div>
                <?php endwhile; ?>
                <?php wp_reset_postdata(); ?>
            <?php else : ?>
                <p>No posts found.</p>
            <?php endif; ?>
        </div>
        <div class="sk-pagination" id="pagination-container-<?php echo esc_attr($block_id); ?>">
            <?php
            $total_pages = $resource_query->max_num_pages;
            $current_page = max(1, get_query_var('paged'));
            render_resource_pagination($total_pages, $current_page);
            ?>
        </div>
    </div>
</section>
<?php get_footer(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit