2005
CA-Weekday
Sponsored Links
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 ![]()
Automatic Installation
CA-Weekday supports automatic installation through WP Plugin Manager. Click here for more info.
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 , plugin, 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.
And while you're here, why don't you check out the following articles which are related to CA-Weekday: CA-Weekday v0.2, Testing on CA-StarDate, Hint on My Third WP Plugin, CA-Recently, My first plugin: CA-Weton, WordPress Plugins, . Or what about our popular articles with high response from visitors: RapidShare Premium Account, RapidCheck - RapidShare Free Premium Account Notifier, RapidShare Download Tools, How to : Bypass Windows Genuine Advantage Check on Windows XP , Best Hacking Tools and Tutorials, .
Pssst! Most people are coming to this page searching for: weekday,weekday in php,download lagu dealova,php weekday name,Lirik Dealova,php show weekday,lirik lagu fruit basket,php weekday,lirik lagu dealova,php display weekday,once, lirik, dealova,weekday installation,dealova-once-lirik lagu,current weekday date php,lagu dealova-once,"lirik+DEALOVA",weekday php,php show weekday from a date,php display a weekday date,how to find week day name by date in php, 




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