date badges

  • Author
    Posts
  • #366811

    I want to add a date badge to my blog that would appear the the left of my posts rather than as a line below the title of my post. I’ve found several websites suggesting ways to this that all involve adding a <DIV> element to the markup, but WordPress just erases html I add. Any ideas? I want to use a small simple image in the badge as well.

    #366911

    I’m using the Cutline template

    #366912

    If the div’s are erased, then that means that whatever was in that div is not supported here.

    Paste the code here between backticks (the key to the left of the #1 with the ~ on it) and we can take a look.

    #366913

    And, we will need a link to the blog. The site linked to your username is a blogspot blog.

    #366920

    ~<div class=”entryDate”>
    <span class=”postMonth”><?php the_time(‘M’) ?></span>
    <span class=”postDay”><?php the_time(‘d’) ?></span>
    <span class=”postYear”><?php the_time(‘Y’) ?></span>
    </div>~

    noggblog.com is my blog

    this is the website I found the div at http://oncemade.com/2009/04/26/create-date-badge-with-wordpress-and-css/

    #366921

    Those contain PHP script calls and PHP script is not allowed at wordpress.COM. It is – or can be – a serious security issue. This support document explains what code is and is not allowed at wordpress.COM: http://support.wordpress.com/code/ .

The topic ‘date badges’ is closed to new replies.