Give help. Get help.

  • # September 2, 2009 at 5:16 am

    I’m new both to php and also wordpress so please excuse me if this is a simple problem.

    I’m hoping to create a blog with dates being the emphasis (please see image). I’m just not sure how to create the php that will call in an image that will relate to a date (not sure if that is the right way to go about it). I want to create 31 images that will relate to the specific day in the month (but not in order).

    I hope this isn’t a mental request and I really appreciate any help.



    # September 3, 2009 at 3:37 pm

    The following will not be proper code, but just to give you an idea:

    $numberday = wp_super_date_thing(‘parameters to only show the day’s number’);

    Then, in the loop where ever you’re displaying this day:

    <img alt="$numberday" class="youprobablyhaveaclass" src="images/my-image-$numberday.jpg" />

    Then all would have to do is name each image my-image-1.jpg, my-image-2.jpg, etc…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.