forked from myproject100/100ProjectSite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
38 lines (26 loc) · 1.14 KB
/
category.php
File metadata and controls
38 lines (26 loc) · 1.14 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
<?php get_header() ?>
<?php $categorieSlug = (null == get_queried_object() || get_queried_object()->slug === "") ? "social-media" : get_queried_object()->slug;?>
<?php get_template_part('template-parts/header-alone') ?>
<div class="large-12 columns section align-center contact-page"
style="padding:50px 0;"
>
<img src="<?= get_template_directory_uri() . '/images/blog-icon.jpg' ?>" alt="" />
<h4 class="align-center">For readers and curious minds</h4>
<span class="align-center small-bold">THIS IS OUR COMPANY’S BLOG</span>
<?php getPostsCategories($categorieSlug) ?>
<div class="large-12 columns align-left portfolio-files">
<?php getPosts('post',5,'category',$categorieSlug,true) ?>
<div class="clearfix"></div>
</div>
</div>
<div class="large-12 columns section align-center" style="padding-bottom: 60px;">
<div class="large-12 columns align-left portfolio-files">
<div class="large-12 columns">
<h2 class="text-infront-line"><span>People's Favorites</span></h2>
</div>
<?php getPeopleFavorites() ?>
<div class="clearfix"></div>
</div>
</div>
<?php get_template_part('template-parts/footer-page') ?>
<?php get_footer() ?>