[gnomeweb-wp] also fix feed url on single post news page
- From: Vinicius Scopel Depizzol <vdepizzol src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomeweb-wp] also fix feed url on single post news page
- Date: Fri, 24 Jun 2011 14:31:39 +0000 (UTC)
commit d9dce845589320540b711acdc22ade52cc6da6f3
Author: Vinicius Depizzol <vdepizzol gmail com>
Date: Fri Jun 24 11:31:14 2011 -0300
also fix feed url on single post news page
wp-content/themes/gnome-grass/news.php | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/news.php b/wp-content/themes/gnome-grass/news.php
index 8c7699b..77e3b0c 100644
--- a/wp-content/themes/gnome-grass/news.php
+++ b/wp-content/themes/gnome-grass/news.php
@@ -9,6 +9,14 @@ add_action('wp_head', function() {
echo '<link rel="stylesheet" type="text/css" media="all" href="'.get_bloginfo('template_url').'/css/news.css" />';
});
+/*
+ * Add link to global feeds instead of current page comments
+ */
+automatic_feed_links(false);
+add_action('wp_head', function() {
+ echo '<link rel="alternate" type="application/rss+xml" title="'.get_bloginfo('name').' » Feed" href="'.home_url('/').'feed/" />';
+});
+
require_once("header.php"); ?>
<!-- container -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]