• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Remove WordPress Post Feed and Post Comment Feed

By Abhishek Ghosh January 1, 2015 9:22 am Updated on January 1, 2015

Remove WordPress Post Feed and Post Comment Feed

Advertisement

Here is How to Remove WordPress Post Feed and Post Comment Feed Via Snippet and Plugins With the Explanation of All Types of Feeds Generated. These tweaks are for optimizing the crawling by the search engine bots. More you will customize and simplify your WordPress powered website’s HTML output, more easily Google can Crawl. WordPress has very limited number of useful plugins. Most are useless, sometimes harmful. None ever tests all the 22 thousand or some number of plugins officially available, snippets are for the advanced users, Plugins are for the new users. These are one of the reasons of getting 404 Errors against a WordPress website on Google Webmasters Tools apart from the reasons we wrote before. 404 for the non existing URLs must not be redirected internally. Rather the reason should be removed.

 

Remove WordPress Post Feed and Post Comment Feed : Understanding the Feeds

 

Normally the advanced users use Genesis (GNU GPL Theme Framework with Premium Support) or Woo (same like Genesis) or Thesis (same like Genesis) the default WordPress Theme. Genesis has an advantage – buy once and forget. We purchased one License long back, that framework is running on all the domains. Woo is also good and has some free themes. We can not say about the other badly coded Themes. Genesis and WordPress Default WordPress theme has common developers. Function of WordPress is not altered – other Themes can act peculiarly. If our fix does not work; essentially it is for the Theme. We have no support for any paid theme. Do not download themes from questionable sources.

By default, WordPress generates these kind of Feeds :

Advertisement

---

Type of Feed Generated By WordPress Intended Function Example Safe to Remove? Gives 404 Error? Generated By File
All Posts Feed Main Feed of Your Website. Intended for Indexing. ./feed/ No No by Default ./wp-rss2.php
./wp-rss.php
./wp-rdf.php
All Comments Feed Comment Feed of Your Website. Intended for Re-crawling. ./comments/feed/ Yes No by Default ./wp-commentsrss2.php
Individual Post Feed Unknown ./2014/12/install-wordpress-nginx-hhvm-ubuntu-cloud-server/feed/ Yes. Must be Removed Varies. May give 301 to the original Post.
Individual Page Feed Unknown ./contact-us/feed/ Yes. Must be Removed Varies. May give 301 to the original Page.
Archives Intended for Indexing. ./archives/feed/
./2014/feed/
./category/computer-and-internet/cloud-computing/feed/
Varies. No by Default.
Search Feed  Unknown ./search/cloud-computing/feed/ No if JSON-LD based Schema is Used. No. 301 redirects to search :
./?s=cloud+computing

 
Yoast WordPress SEO removes some, not all the RSS feeds. Somehow the intended function does not work properly at least on Nginx PHP5-FPM setup with MySQL powered by InnoDB Engine. Yoast does not use Class I servers (Rackspace, HP Cloud etc.) nor is used with Platform as a Service (PaaS) like Heroku or OpenShift. It is abnormal to think that Yoast is using HHVM with RabbitMQ. Do it yourself.

 

Remove WordPress Post Feed and Post Comment Feed : Snippets

 

The impact of these junks appears in two places :

 

  1. The HTML source code of the individual Post
  2. Website’s Main Feed

Feed can give these junks in main xml feed :

Vim
1
2
3
4
5
6
...
https://thecustomizewindows.com/2014/12/public-key-pinning-support-nginx-ubuntu-cloud-server/#respond
 
...
https://thecustomizewindows.com/2014/12/public-key-pinning-support-nginx-ubuntu-cloud-server/feed/
0

Post can have all kind of junks. Google bots try to find the provided URIs.

This is the thing which can change your life :

Vim
1
./wp-includes/default-filters.php

If you check WordPress Settings > Reading Settings you’ll understand you can not control the comment feeds. To remove the version thing both from WordPress Post’s HTML source and Feed, you can add this snippet to your Theme/Child Theme’s function.php or wp-config.php. Yeah, adding things to wp-config.php should work but basically it is better not to make the file heavy :

Vim
1
2
3
4
add_filter('the_generator', 'donkey_complete_version_removal');
function donkey_complete_version_removal() {
return '';
}

donkey is just a name. I could use thecustomizewindows. Adding this will remove all the comments and other feed links :

Vim
1
2
remove_action('wp_head', 'feed_links_extra', 3 );
remove_action('wp_head', 'feed_links', 2 );

Here are all the snippets with description of what they does :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Removes the links to the extra feeds, i.e. category feeds
remove_action( 'wp_head', 'feed_links_extra', 3 );
// Removes links to the Post and Comment Feed
remove_action( 'wp_head', 'feed_links', 2 );
// Removes the link to the Really Simple Discovery service endpoint
remove_action( 'wp_head', 'rsd_link');
// Removes the link to the Windows Live Writer
remove_action( 'wp_head', 'wlwmanifest_link');
// Removes the index link
remove_action( 'wp_head', 'index_rel_link');
// Removes the prev link
remove_action( 'wp_head', 'parent_post_rel_link');
// Removes the start link
remove_action( 'wp_head', 'start_post_rel_link');
// Removes the relational links
remove_action( 'wp_head', 'adjacent_posts_rel_link');
// Removes the WordPress version number
remove_action( 'wp_head', 'wp_generator');

Remove-WordPress-Post-Feed-and-Post-Comment-Feed

 

Remove WordPress Post Feed and Post Comment Feed : Plugins

 

So far, we have discovered these Plugins to useful :

Vim
1
2
3
https://wordpress.org/plugins/adminimize/
https://wordpress.org/plugins/fp-rss-category-excluder/
https://wordpress.org/plugins/osd-remove-all-wp-creds/

Yoast WordPress SEO removes some but not all the stuffs. Basically WordPress needs to be covered to Python or Ruby like Language with a better Database Software. PHP is an inferior language, one simple comments field can help the hacker to run SQL injection. WordPress, for the many has been a kind of Open Source vendor locked software. It is basically impossible to suddenly convert a website with 5K posts to Octopress or any Python based WordPress like web software.

This Article Has Been Shared 782 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Remove WordPress Post Feed and Post Comment Feed

  • Managing and Delivering Podcast Audio and Video From WordPress

    Managing and Delivering Podcast Audio and Video From WordPress can be easily be done in an advanced setup plus you can use CDN or deliver YouTube Video as well.

  • Adding Schema.org Structured Data in Genesis Theme

    Adding Schema.org Structured Data in Genesis Theme without using any plugin is quite easy as Genesis has great documentation and has excellent existing markups.

  • Genesis 2.0, YARP and Schema.org : Guide

    Genesis 2.0 is HTML5 based and YARP is one of the best related post plugin. Here is how to use Schema.org markup to tell search engines about the related links.

  • Schema.org for WordPress : Advanced Tips for Genesis 2.0

    Schema.org for WordPress is nicely integrated by Genesis 2.0 but in terms of semantic complexity, it requires some advanced hand made tweaking.

  • Remove 3rd Party URLs Added By WordPress Plugins

    Remove 3rd Party URLs Added By WordPress Plugins by a Bit Manual Searching on the Source Codes of the Plugins for Better on Page SEO. Here is Some Examples.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Remove WordPress Post Feed and Post Comment Feed," in The Customize Windows, January 1, 2015, January 18, 2021, https://thecustomizewindows.com/2015/01/remove-wordpress-post-feed-post-comment-feed/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy