Template Archive Listing Default
View the current version of archive-listing.php on GitHub.
Archive Listing Loop Title
<h4 class="archive-title loop-title">
<?php
the_post();
if ( is_tax() && function_exists( 'epl_is_search' ) && false == epl_is_search() ) { // Tag Archive $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); $title = sprintf( __( 'Property in %s', 'epl' ), $term->name );
}
else if ( function_exists( 'epl_is_search' ) && epl_is_search() ) { // Search Result
$title = __( 'Search Result', 'epl' );
}
else if ( function_exists( 'is_post_type_archive' ) && is_post_type_archive() && function_exists( 'post_type_archive_title' ) ) { // Post Type Archive
$title = post_type_archive_title( '', false );
}
else { // Default catchall just in case
$title = __( 'Listing', 'epl' );
}
if ( is_paged() )
printf( '%s – Page %d', $title, get_query_var( 'paged' ) );
else
echo $title;
rewind_posts();
?>
</h4>
Archive Listing Loop Content
<div class="entry-content loop-content">
<?php do_action( 'epl_property_loop_start' ); ?>
<?php while ( have_posts() ) : // The Loop
the_post();
do_action('epl_property_blog');
endwhile; // end of one post
?>
<?php do_action( 'epl_property_loop_end' ); ?>
</div>
Archive Listing Loop Pagination
<div class="loop-footer">
<!-- Previous/Next page navigation -->
<div class="loop-utility clearfix">
<?php do_action('epl_pagination'); ?> </div> </div>