The MU forums have moved to WordPress.org

How to edit this portion of blog post (5 posts)

  1. samchng
    Member
    Posted 18 years ago #

    Hello!
    I would like to edit this portion of my blog post page.

    " This entry was posted on Tuesday, April 11th, 2006 at 2:51 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site."

    Where can I find it? Been looking everywhere for it.

    At the same time I would like to use the function for getting the date and time. Which is quite cool for other applications.

    Thanks!

  2. ergate
    Member
    Posted 18 years ago #

    It is in the theme file. If you are using the default theme, it will be on single.php somewhere near the middle,
    starts off like this
    p class="postmetadata alt">
    <small>
    This entry was posted
    <?php /* This is commented, because it requires a little adjusting sometimes.
    You'll need to download this plugin, and follow the instructions:

  3. kahless
    Member
    Posted 18 years ago #

    This would be in the theme you are using. Look in wp-content/themes/yourtheme/ for post.php, single.php, and index.php. Most recent themes will have post.php and this will have the stuff you want to change. Older themes might have the post info in index.php. single.php has what shows up when looking at the permalink with a single post on the page.

    You'll need to edit each theme to have it display as you want. You can look at
    http://codex.wordpress.org/Stepping_Into_Template_Tags
    http://codex.wordpress.org/Template_Tags
    http://codex.wordpress.org/Templates
    These should have what you need. If you need MU specific tags others should be able to help.

  4. samchng
    Member
    Posted 18 years ago #

    Ow, I missed that out. Somehow blinded, must be too much coding recently lolx. Will work at it!!! Thanks for the quick reply.

  5. samchng
    Member
    Posted 18 years ago #

    I am trying to print the time format, like Tuesday, April 11th, 2006 at 2:51 am.

    It comes from this function <?php the_time() ?>
    which I THINK draws data from post_date from wp_".$blog."_posts in SQL table.

    But where does it convert the data from 0000-00-00 00:00:00 to the format above?

About this Topic