Remove categories and tags buttons in the post metas block 16

Note : This snippet applies to Customizr version 3.1.x and below. It may not work with version 3.2+. Use with caution on 3.2+ and check the availability and type of the hooks in the Customizr hooks API.

Last Reviewed: 29-Mar-14

If you need to remove date, authors and tags, categories buttons below the post titles, here are two useful code snippets

Where to copy/paste this code?
This php code requires you to use a Child Theme. Everything you need to know about creating a child theme with Customizr here.

1) First method (removes all metas)

Copy/paste into your customizr child theme functions.php

 

2) Alternative Method (removes only categories and tags)

Copy/paste into your customizr child theme functions.php

 


About Dave Bardell

My name is Dave Bardell (@rdellconsulting) and have been supporting the Forum since discovering this wonderful Theme. Have learnt a lot from other Supporters (@acub, @tomaja, @ElectricFeet, in particular). Have a library of snippets I've built up which in adding here, I'll try to acknowledge the original contributor but apologies to any I miss or wrongly attribute. daveb@rdellconsulting.com


16 thoughts on “Remove categories and tags buttons in the post metas block

  • Reply
    roberto

    hallo, i try this but i still see categories and tags in the post metas block, not the buttons but the name of the category, tags, autor and date…

    how can i clean it
    to see only the name of the post and nothing more?

    Thanks!!!

  • Reply
    Nadine Sabulsky

    I’m not sure if I’m doing this right. My goal is to display the author name and date posted, without the categories or tags showing up. I added the code snippet from #2 (Alternate method) into my child theme functions, however it is still showing the category and tags :/

    Here’s a link to one of my categories: http://www.thenakedlifecoach.com/category/media

    Please advise how I can resolve this issue.

    Thank you for your time!

    Nadine

    PS: adding the #1 Method (to remove all metas) in the function.php file worked great, however I DO want to still display the post date at the very least, so is there a way to remove all the info except that?

    • Reply
      Amy Weik

      Hi Nadine – I see from your link that you figured out how to display just the author and date with your posts. Can you share your code snippet that accomplished this? Thanks!

  • Reply
    Margrethe Moxnes

    I am having the same problem. Added the code snippet, and the buttons disappeared, but the text with hyperlinks are still there.
    I wish to remove categories and tag, but want the date and author to show.

    Thank you for your help!

    – Margrethe

  • Reply
    biagio di micco

    Hi,
    looking at this page, I can see, under the post title a lot of tags or categories grouped by some labels: can you please help me in understanding how can i have the same results?

    Thank’s a lot

    • Reply
      Nicolas

      Hi biagio, this has been done by using the hook of the post meta : ‘__after_content_title’.
      You can add whatever action you want to this hook.
      Hope this helps!

      • Reply
        biagio di micco

        Nicolas,

        thank you for your reply: unfortunately I’m new of your beautiful theme and of wordpress in general. What I would realize is exactly what you has on this blog: some tags groups (or category groups), organized with label for each groups and differenziate with colors.
        It’s possible to give more details on thar (by ex. some example code or references)?

        Thank’s for your patience.

  • Reply
    SHARON SPRAGUE

    I would just like to get rid of any mention of tags, categories and author on my posts. So where it says, “This entry was posted in Uncategorized on November 12, 2014.” I just want the date and nothing else. How do I achieve this?

  • Reply
    Evgeny

    Hi there!

    My problem is that I want to rid of hyperlinks on date numbers in my blog page and individual posts but not the numbers themselves. I use a Child Theme and would like to have some code to insert in the functions.php for example. Thanks!

Leave a Comment

Your email address will not be published. Required fields are marked *

Do you need to share some code? To display it in a nice looking syntax highlighter, wrap your code between the following tags (css code in this example) : <pre class="lang:css">YOUR CODE</pre> ( possible code language acronyms : css, php, xhtml, javascript, sql)

You may also use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">