-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.php
68 lines (55 loc) · 1.88 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
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
* Category Template file
*
* @package portofolio-dev
*/
get_header();
?>
<section class="categories">
<div class="back-link">
<a href="<?php echo home_url(); ?>">
<div class="icon-arrow-right"></div>
</a>
</div>
<div class="category-heading">
<h1>Category Name: <span><?php single_cat_title(); ?></span></h1>
</div>
<div class="items">
<?php
if(have_posts()){
while(have_posts()) {
the_post(); ?>
<!-- ======= Start Categories section ======= -->
<div class="item">
<div class="item-image">
<a href="<?php the_permalink(); ?>">
<img src="<?php the_post_thumbnail_url(); ?>"
alt="<?php the_title_attribute(); ?>">
</a>
</div>
<div class="item-content">
<a href="<?php the_permalink(); ?>">
<h3 class="title"><?php the_title(); ?></h3>
</a>
<p class="excerpt"><?php the_excerpt(); ?></p>
<!-- <div class="social-media">
<a href="#">
<div class="icon-eye"></div>
</a>
<a href="#">
<div class="icon-link"></div>
</a>
<a href="#">
<div class="icon-github"></div>
</a>
</div>
-->
</div>
</div>
<?php }
}
?>
</div>
</section>
<?php get_footer();?>