Forums

[resolved] Newbie needing some help (5 posts)

  1. ktveit
    Member
    Posted 2 years ago #

    Hi, I just set up my wordpress blog, it is almost perfect, but I need help to do the following:
    #Show my name/nickname with the post
    #Show the time in the header
    #Show the date in the format I set it to (19-02-2010 rather than February 19th, 2010)
    Thanks :)

  2. Roy
    Member
    Posted 2 years ago #

    # In the index.php of your theme you have to add some metadata:

    <?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> -->
    just below
    <?php the_title(); ?>

    # that'll probably require a plugin.

    # Options->general custom data j F Y and custom time G:i

  3. ktveit
    Member
    Posted 2 years ago #

    Thanks for replying. I will edit the index and try to install the plugin. But the thing is, I have already changed the date and time to my custom formats. They are showing up properly in the example, but when I made a post, it did not have the correct date format.

    Edit: Not actually sure I need the plugin, I have probably phrased the question wrongly, but thank you anyway.

    Another edit: That data already seems to be in the file. For some reason only the date is showing where the author and time should be. It is a theme issue however as the other theme did not have the same problem. I will keep trying to fix it, but I think I have the info I need. Thank you.

  4. Roy
    Member
    Posted 2 years ago #

    but when I made a post, it did not have the correct date format

    That is why the F jS, Y part is in the code for the_time. You can use the same format as in the settings screen. Also see:
    http://codex.wordpress.org/Formatting_Date_and_Time

    Not actually sure I need the plugin

    It could be some easy code, but I don't know it...

    [edit] inspiration?
    http://forum.bytesforall.com/showthread.php?t=2902

  5. ktveit
    Member
    Posted 2 years ago #

    That's what I did ;) It is all fixed now.

    What I meant by header was actually the part where the title and author are shown. I didn't know what to call it. So I don't need a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic