How to remove Tags from Home page in WordPress

If you don’t like to display Tags on Home page of your WordPress site, then its so easy to do. A function for displaying Tags generally found in the index.php file of site main theme. Removing this function completely is not a good idea, you should add condition to don’t show Tags on home page only.  To achieve this you can follow below steps:

  1. Log in to your site/blog.
  2. Go to Appearance-> Editor
  3. Main index.php of active theme
  4. Search for keyword “tags”, you can found function/code as like  the_tags(),
  5. Add condition and put the_tags() or get_the_tag_list() within its as like given below:
 if (!is_home()){
    <p><?php the_tags(); ?></p> // will execute other then Home page

 if (!is_home()){
     $tags_list = get_the_tag_list( '', __( ', ', 'themename' ) );
Wordpress Tags
WordPress Tags

Now your blog’s home page will not display Tags but rest of the site will have as per default settings.

Please let me know if you have any further queries. Hope you will find this tip useful, if yes please share by using below share buttons. Thanks…

Comment here