| Server IP : 69.164.203.165 / Your IP : 216.73.216.219 Web Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/matlock/wp-content/themes/lmg_custom/ |
Upload File : |
<?php
/**
* Template Name: team page
*/
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop
add_action( 'genesis_loop', 'custom_do_loop' ); // Add custom loop
function custom_do_loop() {
if ( have_posts() ) : while ( have_posts() ) : the_post();
// Intro Text (from page content)
?>
<div data-overimage="true" class="title-container page-featured-listings-title" style="background-image: <?= get_field('page_video') ? 'none' : 'url(' . get_the_post_thumbnail_url() . ');'; ?>">
<?= get_field('page_video') ?>
</div>
<!-- <div class="video-overlay-container">
<a class="close-video-overlay lmg-fal lmg-fa-times"></a>
<div class="inner-video-overlay">
<div class="video-wrapper">
</div>
</div>
</div> -->
<?php
echo '<div class="page-content" id="contentStart">';
echo '<h1 class="team-page-title text-center">'. get_the_title() .'</h1>';
the_content();
echo '</div>';
echo do_shortcode('[staff-page orderby="menu_order"]');
endwhile;
endif;
?>
<?php
}
genesis();