-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-posts.php
More file actions
63 lines (54 loc) · 2.26 KB
/
page-posts.php
File metadata and controls
63 lines (54 loc) · 2.26 KB
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
<?php
/**
* The template for displaying archive pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package xx
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="container">
<article class = "page blog" href="https://new-website-ksdt-tennysonholloway.c9users.io/programming/">
<div class = "entry-content">
<!-- Blog -->
<div class = "row">
<span class="title">Blog</span>
<br>
<div class="line"></div>
<?php
$args = array(
'post_type'=> 'post',
);
$the_query = new WP_Query( $args );
$count = 0;
if($the_query->have_posts() ) : ?>
<?php
while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class = "col-lg-3 col-md-6 col-sm-6 col-xs-12 col-extended" href = "<?php the_permalink(); ?>">
<div class = "card">
<?php if(has_post_thumbnail()) : ?>
<div class = "image-div">
<img class = "image-extended" src = "<?php the_post_thumbnail_url() ?>" alt = "Card image cap">
</div>
<?php else:?>
<div class = "no-image"></div>
<?php endif;?>
<div class = "card-block card-block-extended">
<span class = "card-title card-title-extended"><?php the_title() ?></span>
<br>
<span class="entry-date"><?php echo get_the_date(); ?> <span>/ by <?php the_author(); ?> </span> </span>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
</div>
</article>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();