-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-transportation.php
95 lines (71 loc) · 1.93 KB
/
archive-transportation.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
get_header();
/* Check pagination */
$paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;;
$category = strtolower(single_cat_title( '', false ));
$postPerPage = get_option( 'posts_per_page' );
$args = array(
'post_type' => array( 'transportation' ),
'order' => 'DESC',
'posts_per_page' => 99,
'paged' => $paged,
);
$the_query = new WP_Query( $args );
?>
<section id="archive">
<section class="container">
<div class="col-md-12 nopad">
<?php ais_breadcrumb( get_post_type( $post ) ); ?>
</div>
<div class="col-md-12 nopad">
<?php
if ( $the_query->have_posts() ) :
?>
<div id="timeline" class="row archive-item" data-columns>
<?php
while ( $the_query->have_posts() ) : $the_query->the_post();
?>
<article id="entry-block" class="item block-item">
<div class="entry-image-area top-image">
<a href="<?php the_permalink(); ?>">
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail( 'xx-landscape', array( 'class' => 'img-featured-list' ) );
endif;
?>
</a>
</div>
<div class="entry-content-container primary">
<h3 class="entry-title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h3>
</div>
<div class="entry-content-subcontainer">
<div class="entry-content">
<?php ais_excerpt_length( 20, get_the_permalink(), 'read-more', 'Get It <i class="fa fa-arrow-circle-right"></i>' ); ?>
</div>
</div>
</article>
<?php
endwhile;
?>
<div class="loader hide"> Loading ... </div>
</div>
<?php
else :
?>
<div class="row">
<div class="text-center">
<h1>Sorry, no posts match with your criteria.</h1>
</div>
</div>
<?php endif; ?>
</div>
</section>
</section>
<?php
get_template_part( 'layouts-templates/layout', 'transit_recommendation' );
get_footer();
?>