• Anyone know of a plugin that would allow me to change the blog description based on the day of the week? (rather its Monday, tue, wed, thurs, fri, sat or sunday)

    or could this be designed fairly easy?

    thanks

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter bubazoo

    (@bubazoo)

    well, it was the only way to get the sidebars to expand/colapse like that, and to move them around by user preference.

    and I just thought opening inline images up in a flash window above the blog was kinda neat ??

    anyway, I tried to put the plugin header above that code, into a .php file, along with that code below it, but I didn’t know what to put in my template file?

    I tried

    <?php daydesc(); ?> but that didn’t work, broke the blog. plugin activated ok, just isn’t displaying anything where its supposed to. So I give up on it tonight and I’ll work on it more tomorrow when I feel more like learning how to design a plugin.. since odviously I am not able to do it by myself.

    Ah I see. This changes the ‘blogdescription’ value in the wp options table, like in your RSS feed and stuff. You can try calling that by <?php echo get_option('blogdescription'); ?>. I’m not sure whether that’s the description used in the default Kubrick header? Probably is. You can modify the code to not touch your blogdescription and just output something based on day:

    <?php
    function daydesc() {
    $daydesc['Mon'] = 'Description for Monday';
    $daydesc['Tue'] = 'Description for Tuesday';
    /* etc: just finish the $daydesc['3-letter-day'] = 'description' info */
    echo $daydesc[date('l')];
    }
    ?>

    If the plugin contains just that, you can call <?php daydesc(); ?> anywhere in your template.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘plugin to change blog description based on date?’ is closed to new replies.