WordPress.org

Ready to get started?Download WordPress

Forums

Date images (5 posts)

  1. jdnsnowy
    Member
    Posted 9 years ago #

    I would like to have a plug in of date image, just like it would be the category image plug in. (like for example the cofee2code category image plugin http://www.coffee2code.com/wp-plugins/#categoryimages) But I don't relly know if it exists.

    What I need is the plug in to recognize the number (ex: 28) the month (ex: June) and the year (ex: 2005) and the put three image files (corresponding to each of the three parts of the date) together one next to the other.

    If someone knows any plugin that does this or any link that could help me please let me know.
    Thanxs for your help!!!!

  2. pascalou127
    Member
    Posted 9 years ago #

    You don't need a 'plug' to do that. You can do that with php.
    Look at my site click here

    Every post title displays an image of the date the post was posted. My images have a naming convention that is MM_DD.png (monthmonth_dayday.png) .To get that I use standard PHP functions - namely <?php the_time('m_d') ?>.
    Just adapt that to your naming convention.

  3. nunuh
    Member
    Posted 9 years ago #

    what?? i dont get this??? i want to use that too but i want the month and day number as images.. your site shows only theday of the month.
    can you put the coding here too?? thanks.. a lot!

  4. pascalou127
    Member
    Posted 9 years ago #

    No it does show the month, but it's probably too small to see.

    Here is the code I have:

    <img valign="middle" src="../wp-images/icons/thalassa_icon/<?php the_time('m_d') ?>.png" width="35">

    hope it helps

  5. idahocline
    Member
    Posted 9 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.