-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
49 lines (41 loc) · 1.01 KB
/
category.php
File metadata and controls
49 lines (41 loc) · 1.01 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
<?php
get_header(); ?>
<div class="left">
<?php
$showCategories = getCategories();
$showPosts = getPosts();
showFeaturedPosts();
/*
// show first post when category is selected
$categoryName = single_cat_title('', false);
$categoryID = get_cat_ID($categoryName);
$args = array(
'orderby' => 'post_date',
'order' => 'DESC',
'category' => $categoryID,
);
$posts = get_posts($args);
$firstPost = $posts[0];
$title = $firstPost->post_title;
$excerpt = $firstPost->post_excerpt;
addNextLinkToContent($firstPost->post_content);
*/
?>
</div><!--end left -->
<div class="right">
<div class="title">
<a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>
</div><!--end title -->
<div class="title">
</div><!--end title -->
<div class="textcolumn">
<div class="medianav">
<?php echo $showCategories; ?>
</div><!--end medianav -->
<?php echo $showPosts; ?>
</div><!--end textcolumn -->
<div class="textcolumn">
<?php get_sidebar(); ?>
</div><!--end textcolumn -->
</div><!--end right -->
<?php get_footer(); ?>