tag: add the RSS link

Fix #17
This commit is contained in:
Kazhnuz 2018-10-24 21:50:29 +02:00
parent 43bb64e867
commit 5745bf9042

10
tag.php
View file

@ -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-tag"></i> <?php echo single_cat_title(); ?> <span><i class="fa fa-fw fa-tag"></i> <?php echo single_cat_title(); ?></span>
<?php
$tag = get_category( get_query_var( 'tag' ) );
$tag_id = $tag->ID;
echo '<a href="' . get_tag_link( $tag_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'); ?>