-
-
Save arielk/5ab4eb2602472ea05f4f to your computer and use it in GitHub Desktop.
Gallleries Archive with Category Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
$display_type = pojo_get_option( 'gallery_display_type' ); | |
if ( empty( $display_type ) ) | |
$display_type = 'gallery_grid_three'; | |
?> | |
<?php if ( po_breadcrumbs_need_to_show() ) : ?> | |
<?php pojo_breadcrumbs(); ?> | |
<?php endif; ?> | |
<h1><?php | |
if ( is_tax() ) : | |
single_tag_title(); | |
else : | |
_e( 'Archive Galleries', 'pojo' ); | |
endif; | |
?></h1> | |
<?php if ( have_posts() ) : ?> | |
<?php do_action( 'pojo_before_content_loop', $display_type ); ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php pojo_get_content_template_part( 'content', $display_type ); ?> | |
<?php endwhile; ?> | |
<?php do_action( 'pojo_after_content_loop', $display_type ); ?> | |
<?php pojo_paginate(); ?> | |
<?php else : ?> | |
<?php pojo_get_content_template_part( 'content', 'none' ); ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment