• 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 585 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, 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

Get new posts by email:

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 (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

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

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT