• Title say everything. How to delete date when article is posted and under wich category it is posted? I want to delete that for all articles.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Are you asking how to delete the date and category that is displayed on the post? If so, it depends on which theme you’re using. Each theme has a unique structure it uses for code.

    Generally, you want to look in the single.php page. Find the following code <?php the_category(); ?>. By removing that it will no longer display the category.

    The date is a little trickier to find. You want to look for something that says <?php the_date(); ?>. It may look a little different so it might be a little hard to find. But just remove that and you should be good.

    Thread Starter luka123

    (@luka123)

    I just need to remove that part of code, right? It don’t going to produce any errors, bugs or something like that?

    If you just remove that part of the code, it should not produce any errors. What you could do is change the code to <?php // the_category(); ?> and <?php // the_date(); ?>. By adding two slashes after <?php you are commenting them out. This means they are still in the code but will not be published on the page. So, that way if you ever need them again, all you need to do is remove those two slashes.

    Thread Starter luka123

    (@luka123)

    Thanks! I just deleted them. ?? btw Can I delete this text in the footer “Powered by WordPress”? It is “legal” I mean do wordpress alow that?

    Yes, you’re certainly allowed to. Many people choose to keep it on their website because WordPress is a free, open CMS. But, to answer your question, you can remove it if you’d like.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to delete date when article is posted and category’ is closed to new replies.