开发者 | inforeole |
---|---|
更新时间 | 2025年6月8日 17:17 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
<title>
tag of your pages). This can be useful for creating dynamic, always-current titles.
Main Shortcodes (English):
[simpcuda_current_year]
[simpcuda_current_month_year]
[simpcuda_current_date_time]
French Aliases Also Available:
[simpcuda_annee]
(for [simpcuda_current_year]
)
[simpcuda_mois_annee]
(for [simpcuda_current_month_year]
)[simpcuda_date_heure_courante]
(for [simpcuda_current_date_time]
)
Why choose this plugin?
simple-current-date-time
folder (the entire plugin folder) to the /wp-content/plugins/
directory.simple-current-date-time.zip
file via "Plugins > Add New > Upload Plugin" in your WordPress admin area.[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.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.
Yes, you can use <?php echo do_shortcode('[simpcuda_current_year]'); ?>
(or any other valid shortcode) in your theme's PHP files.
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.
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.
simpcuda_
to prevent conflicts. Note: You must update your existing shortcodes (e.g., [current_year]
is now [simpcuda_current_year]
).load_plugin_textdomain
function call. WordPress.org now handles this automatically.[current_year]
, [current_month_year]
, [current_date_time]
.[annee]
, [mois_annee]
, [date_heure_courante]
.