How to disable date and time on my post?

12 replies
  • WEB DESIGN
  • |
I remember there is one option just tick and it will disable post date and time been shown.

I forget where is it .next WP also come out new version..

Anyone knows thanks
#date #disable #post #time
  • Profile picture of the author limaromeo
    Hey I used this guy while ago when needed to do what you`re thinking to.
    How to Remove Dates from WordPress Posts

    hope it works......
    {{ DiscussionBoard.errors[9740335].message }}
    • Profile picture of the author Devilfish168
      huh need to input codes?

      I do remember no need.....?

      there is an option just disable and all post will not have date
      {{ DiscussionBoard.errors[9740340].message }}
      • Profile picture of the author Zenoth
        It depends on the theme you are using for your WordPress site. If you don't have the option to hide post date, you need to edit your template files.
        {{ DiscussionBoard.errors[9740715].message }}
        • Profile picture of the author Devilfish168
          Originally Posted by Zenoth View Post

          It depends on the theme you are using for your WordPress site. If you don't have the option to hide post date, you need to edit your template files.
          i using inovado themes bro

          do you know how to disable the post date
          {{ DiscussionBoard.errors[9750198].message }}
  • Profile picture of the author domainarama
    Go to SETTINGS (in the column on the left side of the WP admin page)

    Go to GENERAL SETTINGS

    Go to DATE FORMAT

    Click the CUSTOM button, in the field on the right of the button either leave the field blank or leave M (for month) and/or Y (for year) For example, I never have day and month, but publish year.

    Same thing for TIME FORMAT

    SAVE SETTINGS
    {{ DiscussionBoard.errors[9750237].message }}
  • Profile picture of the author MrJaswal
    The “proper” way to do this would be to edit your theme and remove the code that displays the post dates.

    1) Backup your theme, just in case
    2) Go to “Appearance > Editor” and repeat the following steps for each of your theme’s PHP files
    3) Look for these function calls in your theme’s code: the_date(), echo get_the_date(), the_modified_date(), and the_time()
    4) Surround the function calls with PHP comment markers (/* and */); here are some examples:
    <?php /*the_date();*/ ?> <?php /*the_date('F j, Y');*/ ?> <?php /*echo get_the_date();*/ ?> <?php /*the_modified_date();*/ ?> <?php /*the_modified_date('', 'Last modified ');*/ ?> <?php /*the_time( get_option('date_format') );*/ ?>
    5) You may want to remove other text surrounding the function call. For example, if your theme has this code
    <div>Published on <?php the_time( get_option('date_format') ); ?></div>
    …and you replace it with this…
    <div>Published on <?php /*the_time( get_option('date_format') );*/ ?></div>
    …your theme will output “Published on,” but not the date. Deleting “Published on” from your theme file will remove it from your site. Just be aware that you may have to remove text like this from your theme files to get a clean-looking result.
    6) Click “Update File”
    {{ DiscussionBoard.errors[9751009].message }}
  • Profile picture of the author Devilfish168
    the setting can't work ..

    and the code wise gee I can't find it ....
    {{ DiscussionBoard.errors[9751929].message }}
  • {{ DiscussionBoard.errors[9754031].message }}
    • Profile picture of the author thecableguy
      I was just asking the same thing a short while ago. Here's something that's been working for me. But if you have a lot of content on your site you might want to download a copy of the file you're editing first, or have a backup of your site.

      Go to Appearance/Editor (should be displaying your stylesheet) Scroll to the very bottom and add:
      .entry-meta {display:none}
      .sticky .entry-meta{display:none;}

      Don't forget to refresh the page when checking

      I was looking for a plugin that actually worked also. Someone suggested editing the templates, but if I remember correctly a number of them needs to be modified including the archives, search and catergories.
      {{ DiscussionBoard.errors[9756925].message }}
  • Profile picture of the author heatherIDD
    To disable the display of the date and time of your post, go to settings and deselect the display data and time. You can also inspect the element, get the div id and then got to style.css, find that div id and put:
    display:none !important;
    If it still doesn’t work, look for resources across the Internet.
    {{ DiscussionBoard.errors[9760287].message }}

Trending Topics