| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 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 : /proc/self/cwd/home/ |
Upload File : |
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package aperture-real-estate
*/
get_header();
?>
<div id="primary" class="content-area grid-wide">
<main id="masonry" class="site-main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="archive-description">', '</div>' );
?>
</header><!-- .page-header -->
<?php
/* Start the Loop */
while ( have_posts() ) :
the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('post-item'); ?>>
<div class="post-thumb">
<a href="<?php the_permalink();?>">
<?php if (has_post_thumbnail()) {
the_post_thumbnail(get_the_ID(), 'medium');
} else {
$thumb = get_template_directory_uri() .'/img/default.png';
echo '<img src="'.esc_url("$thumb").'">';
} ?>
</a>
</div>
<header class="entry-header">
<a href="<?php the_permalink();?>">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</a>
<?php echo esc_html(aperture_real_estate_post_category()); ?>
</header><!-- .entry-header -->
</article>
<?php endwhile;
the_posts_navigation();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();