-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
47 lines (39 loc) · 1.26 KB
/
home.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
<?php
/**
* Created by PhpStorm.
* User: aahladmadireddy
* Date: 1/25/18
* Time: 2:40 PM
*/
get_header(); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="resources">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="resource">
<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
<?php
$posttags = get_the_tags();
if ($posttags) {
?>
<p class="resource-date">Added on: <?php the_date() ?></p>
<div class="taglist">
<?php
foreach ($posttags as $tag) {
echo "<a class='tag' href='" . get_tag_link($tag->term_id) . "'>" . $tag->name . '</a>';
} ?>
</div>
<?php
}
?>
</div>
<?php endwhile; endif; ?>
</div>
<div class="nav-previous alignright"><?php next_posts_link( 'Next' ); ?></div>
<div class="nav-next alignleft"><?php previous_posts_link( 'Previous' ); ?></div>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->
<?php get_footer();