| Server IP : 68.183.124.220 / Your IP : 216.73.216.141 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : 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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/aperture-real-estate-pro/templates/blocks/ |
Upload File : |
<div class="sections clear blogs">
<div id="primary" class="content-areaclear"><main id="main" class="site-main grid-wide">
<?php
$section_title = get_sub_field('section_title');
$blog_no = get_sub_field('number_of_articles');
//Section header
echo '<h2 class="section-title">'. $section_title .'</h2>';
echo '<main id="masonry">';
global $post;
$arr = array(
'post_type' => 'post',
'posts_per_page' => $blog_no,
);
$blog = new WP_Query( $arr );
if($blog->have_posts()):
while($blog->have_posts()): $blog->the_post();
get_template_part( 'template-parts/content', 'preview' );
endwhile;
wp_reset_postdata();
endif;
echo '</main>';
?>
</main>
</div>
</div>