category: add the RSS link
This commit is contained in:
parent
e1311567da
commit
a9c54dba0c
1 changed files with 8 additions and 2 deletions
10
category.php
10
category.php
|
@ -1,7 +1,13 @@
|
||||||
<?php get_header(); ?> <!-- ouvrir header,php -->
|
<?php get_header(); ?> <!-- ouvrir header,php -->
|
||||||
<main class="col-md-8">
|
<main class="col-md-8">
|
||||||
<h1 class="page-title">
|
<h1 class="page-title page-title-flex">
|
||||||
<i class="fa fa-fw fa-folder"></i> <?php echo single_cat_title(); ?>
|
<span><i class="fa fa-fw fa-folder"></i> <?php echo single_cat_title(); ?></span>
|
||||||
|
<?php
|
||||||
|
$category = get_category( get_query_var( 'cat' ) );
|
||||||
|
$cat_id = $category->cat_ID;
|
||||||
|
|
||||||
|
echo '<a href="' . get_category_link( $cat_id ) . 'feed/" title="RSS de la categorie" />' . '<i class="fa fa-fw fa-rss"></i></a>' ;
|
||||||
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<?php include(TEMPLATEPATH . '/components/posts-list.php'); ?>
|
<?php include(TEMPLATEPATH . '/components/posts-list.php'); ?>
|
||||||
|
|
Reference in a new issue