daily gadgets, computers, and electronic news
21/04
2005

CA-Weekday

Sponsored Links

Your webmaster search is: looking for weekday display for wordpress plugin

CA-Weton and made it as individual plugin called CA-Weekday. Since today I just learn how to add an option page for plugin, this one support weekday name modification through Option page :D

Automatic Installation
CA-Weekday supports automatic installation through WP Plugin Manager. Click here for more info.

0
Vote

Manual Installation

  • Download the plugin from here or copy the code directly from the next page and save it as ca_weekday.php.
  • Extract the file and upload ca_weekday.php into your WordPress‘ plugins directory (../wp-contents/plugins)
  • Activate the plugin from Admin’s Plugin page
  • A new sub-option is now available on your Admin’s Option page. Go there to customized the weekday name.
  • Modify your theme pages with the syntax below to display custom weekday.

Usage Syntax

  • function ca_weekday($before, $after, $tipe, $print, $current)
    • Purpose: Display custom weekday name
    • Parameter:
      • $before: Text displayed before weekday name
      • $after: Text displayed after weekday name
      • $tipe: Type of input date. Default is 0 (0 = current date | 1 = post date | 2 = comment date)
      • $print: Boolean (true/false). If true, output will be print directly to screen. If false, output is returned and must be print manually. Default is TRUE.
      • $current: Specific date input in UNIX time-stamp format. You can use mktime function to create one.
        Example: $cur = mktime(0,0,0,2,16,2005);
        Default is NULL (you don’t need to input anything, plugin will handle it automatically based on $tipe parameter)
    • Usage:
      Display weekday name for current date
      [php]< ?php ca_weekday('Today is ',''); ?>[/php]
      Display weekday name for post date (put inside The Loop)
      [php]< ?php ca_weekday('(',')',1); ?>[/php]

Version History

  • v0.2 (April 29th, 2005) : Now works with comments date
  • v0.1 (April 20th, 2005) : Initial release

To Do

  • Comment date support

See a working demo right on top of this page, under the post’s title :d

Pages: 1 2

CA-Weekday is written by cosa and posted under Programming, WordPress , , . If you like it, you might consider subscribing to our feed, follows us on Twitter, or receive our latest posts via email. Or else, you could also or store it to your favourite social bookmark sites.

2 Comments »

  1. 1
    WP Plugins DB » Blog Archive » CA-Weekday says:

    [...] Visit [...]

  2. 2
    [DGN] Our Best Picks - April 2005 | Funponsel Network says:

    [...] other people’s plugins, I did create my own plugins as well. For example: CA-Weton, CA-Weekday, CA-Credits, and [...]

Leave a comment

 
 

You need to log in to vote

The blog owner requires users to be logged in to be able to vote for this post.

Alternatively, if you do not have an account yet you can create one here.

Powered by Vote It Up