HEX
Server: Apache
System: Linux p3plzcpnl504740.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: l2pbkn5l6xav (4972877)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /home/l2pbkn5l6xav/www/wp-content/themes/ngo-charity-lite/template-parts/homepage/feature.php
<?php
$nct_theme_options = ngo_charity_lite_theme_options();
$about = array($nct_theme_options['about']);
$args = array(
    'post_type' => 'page',
    'post__in' => $about
);
$about_query = new WP_Query($args);
if ($about_query->have_posts()) {
    while ($about_query->have_posts()) {
        $about_query->the_post();
        $attachment_id = get_post_thumbnail_id(get_the_ID());
        $image_attributes = wp_get_attachment_image_src($attachment_id, 'full');
        ?>
        <div class="about-sec section">
            <div class="container">
                <div class="row">
                    <div class="col-md-6" data-aos="fade-up">
                        <?php if(has_post_thumbnail()): ?>
                        <img src="<?php echo esc_url($image_attributes[0]); ?>"
                             alt="">
            <?php endif; ?>
                    </div>
                    <div class="col-md-6" data-aos="fade-up">
                        <div class="about-wrap">
                            <h2><?php echo esc_html(get_the_title()); ?></h2>
                            <?php
                            if(get_the_excerpt() && trim(get_the_excerpt()) != ""){
                                the_excerpt();
                            }
                            else{
                            ?>
                            <p><?php echo wp_kses_post(ngo_charity_lite_get_excerpt(get_the_ID(), 500)); ?></p>
                            <?php
                            }
                            ?>
                            <a href="<?php echo esc_url(get_the_permalink()) ?>"
                               class="btn btn-default"><?php echo esc_html__('Read More', 'ngo-charity-lite'); ?></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php
    }
    wp_reset_postdata();
}