HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/captainschairit.com/wp-content/themes/captainschare/template-parts/features-page.php
<?php
/**
 * Template Name: Features Page
 */
get_header();
$banner_section = get_field('banner_section');
//echo '<pre>'; print_r($banner_section);
?>

  <section class="no-banner">
    <div class="container">
      <div class="row">
        <div class="col-sm-12">
          <h2 class="heading01 mb-5 text-center">FEATURES</h2>
          <!-- Feature row -->
            <?php
            $args = array(
              'posts_per_page'   => -1,
              'orderby'          => 'date',
              'order'            => 'ASC',
              'post_type'        => 'cc-features',
              'post_status'      => 'publish',
              );
            $features = get_posts( $args );
            // echo '<pre>'; print_r($features);
            $count = 1;
            foreach($features as $feature) {
            $feat_image = wp_get_attachment_url(get_post_thumbnail_id($feature->ID)); ?>
              <div class="feature-row <?php echo ($count%2 == 0)?'feature-even':''; ?>">
                <div class="feature-image-wrapper">
                  <div class="laptop-animation">
                    <div class="destop-browser-bg feature-image">
                      <div class="dashboard-image-blog " style="background-image: url(<?php echo $feat_image; ?>"></div>
                    </div>
                  </div>
                </div>
                <article class="feature-content">
                  <h3 class="feature-heading"><?php echo $feature->post_title; ?></h3>
                  <p>  <?php echo $feature->post_content; ?> </p>
                  <!-- <p>MSPs and their clients love the ticket support feature.  Tickets can be created and managed from Captain’s Chair. Custom forms can be created for onboarding new employees as an example and approval tickets can be created that clients can approve from their email.</p> -->
                </article>
              </div>
            <?php
            $count++;
            } ?>
          <!-- /Feature row -->
        </div>
      </div>
    </div>
  </section>
<?php
get_footer();
?>