Browse Source

rss link

master
3err0 3 years ago
parent
commit
96825342a1
  1. 6
      archive.php
  2. 1
      header.php

6
archive.php

@ -9,7 +9,11 @@ get_header(); ?>
<?php
if ( have_posts() ) {
echo "<h1>", the_title(), "</h1>";
echo
"<h1>",
the_title(),
"<div class='right'><a href='", bloginfo('rss2_url'), "'>RSS</a></div>",
"</h1>";
}
// the query
$wpb_all_query = new WP_Query(array('post_type'=>'post', 'post_status'=>'publish', 'posts_per_page'=>-1)); ?>

1
header.php

@ -4,6 +4,7 @@
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<link rel="stylesheet" href="<?php echo get_stylesheet_uri() ?>" />
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.png" />
<link rel="alternate" type="application/rss+xml" title='<?php echo get_bloginfo('name'); ?>' href='<?php bloginfo('rss2_url'); ?>' />
<title>
<?php if(is_front_page() || is_home()){
echo get_bloginfo('name');

Loading…
Cancel
Save