Linux 软件免费装
Banner图

Simple Current Date Time

开发者 inforeole
更新时间 2025年6月8日 17:17
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode time date localized date dynamic title

下载

2.0.1

详情介绍:

"Simple Current Date Time" is a lightweight and straightforward WordPress plugin designed to effortlessly display dynamic date and time information on your website. It leverages WordPress's built-in date/time formatting, ensuring that the output is automatically localized according to your site's language settings. This makes it an ideal "date and time plugin for WordPress" for multilingual websites or any site needing accurate, localized date displays. A key feature is its ability to parse these shortcodes not only in your post/page content but also directly within your H1 headings and, importantly, in your SEO metatitles (the <title> tag of your pages). This can be useful for creating dynamic, always-current titles. Main Shortcodes (English):

安装:

  1. Upload the simple-current-date-time folder (the entire plugin folder) to the /wp-content/plugins/ directory.
  2. Or, upload the simple-current-date-time.zip file via "Plugins > Add New > Upload Plugin" in your WordPress admin area.
  3. Activate the plugin through the 'Plugins' menu in WordPress.
  4. Use the shortcodes (e.g., [simpcuda_current_year], [simpcuda_current_month_year], or their French aliases) in your posts, pages, widgets, H1 titles, or even configure them in your SEO plugin for the meta title.

升级注意事项:

2.0.1 Minor fix to comply with plugin checker guidelines. 2.0.0 This version is a mandatory update to comply with WordPress.org guidelines. It introduces breaking changes to shortcode names. Please update all your shortcodes by adding the simpcuda_ prefix (e.g., from [current_year] to [simpcuda_current_year]). 1.4 This is the first version ready for WordPress.org. If you were using a previous internal version, this version standardizes shortcodes to English primaries with French aliases and adds full internationalization support.

常见问题:

How are the date and time formatted?

The [simpcuda_current_date_time] (or its French alias [simpcuda_date_heure_courante]) shortcode uses the "Date Format" and "Time Format" you have configured under "Settings" > "General" in your WordPress admin area. The [simpcuda_current_year] (alias [simpcuda_annee]) shortcode outputs a 4-digit year, and [simpcuda_current_month_year] (alias [simpcuda_mois_annee]) outputs the full month name and 4-digit year, localized by WordPress.

Can I use these shortcodes in my theme files?

Yes, you can use <?php echo do_shortcode('[simpcuda_current_year]'); ?> (or any other valid shortcode) in your theme's PHP files.

Is it compatible with multilingual plugins (WPML, Polylang, etc.)?

Yes, because it uses wp_date(), the date and time output will respect the language settings managed by most multilingual plugins for the frontend display.

Where can I see the list of available shortcodes in my admin area?

Once the plugin is activated, the available shortcodes (both primary English shortcodes and their French aliases) are listed directly below the plugin's description on your WordPress "Plugins" page for easy reference.

更新日志:

2.0.1 (June 6, 2025) 2.0.0 (June 6, 2025) 1.4 (May 31, 2025) 1.3 (Internal Version)