-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.php
56 lines (33 loc) · 1.58 KB
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
get_header();
global $count;
global $wp_query;
global $abbey_query;
$current_page = (int) get_query_var( 'paged' );
$count = ( $current_page > 1 ) ? ( ( $current_page - 1) * (int) get_option( 'posts_per_page' ) ) : 0;
$abbey_query = array();
$queried_object = get_queried_object();
$queried_name = $queried_object->slug;
?>
<main id="<?php abbey_theme_page_id(); ?>" class="row archives">
<header id="<?php echo $queried_name; ?>-archive-header" class="text-center archive-header">
<div class="md-50"><?php do_action( "abbey_archive_page_heading", $queried_object ); ?></div>
<?php print_r( get_term_meta( 5, "thumbnail", true ) ); ?>
</header>
<section id="content" class="row archive-content">
<?php if ( have_posts() ) : abbey_setup_query(); ?>
<div class="col-md-3 archive-posts-summary" id="<?php echo $queried_name; ?>-archive-summary">
<?php do_action( "abbey_archive_page_summary", $abbey_query ); ?>
</div>
<div id="<?php echo $queried_name; ?>-archive-posts" class="col-md-8 col-md-offset-1 category-archive-posts">
<?php while ( have_posts() ) : the_post(); $count++; ?>
<?php get_template_part("templates/content", "archive"); ?>
<?php endwhile; ?>
<div class="navigation" role="navigation"><?php abbey_posts_pagination();?></div>
</div>
<?php else : get_template_part("templates/content", "archive-none"); ?>
</section>
<?php endif; ?>
</main> <div style="direction: ltr;"> <?php //print_r( get_post_type_object( "news" ) );
print_r( $queried_object ); ?></div><?php
get_footer();