[WordPress] 外掛分享: Current Date for Posts, Pages, or Template

首頁外掛目錄 › Current Date for Posts, Pages, or Template
WordPress 外掛 Current Date for Posts, Pages, or Template 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
20+
安裝啟用
★★★★★
5/5 分(1 則評價)
2289 天前
最後更新
0%
問題解決
WordPress 3.1+ PHP 5.6+ v1.0 上架:2019-12-11

內容簡介

顯示當前時間和日期

您是否曾經想在您的網站上顯示今天的日期並保持其自動更新以供搜索引擎和訪客使用?

這個外掛程式最大程度地提供了彈性,讓您選擇當前時間戳記的格式和時區。

對SEO友好且代碼輕量

這個外掛程式包含輕量代碼,讓頁面載入非常快速,對SEO友好,並且它是開發的,以保持完全與WordPress 3.1(2011)到WordPress 5 +(2019),從PHP 5.6到PHP 7.3的兼容性。

特點:

從數十個選項中選擇您的時區。
選擇您喜歡的日期格式
輕量代碼,快速加載頁面,保持良好的頁面速度分數
此外掛程式不會向訪問者設置cookie
與所有解析度兼容:桌面,平板電腦和智能手機

使用方法:

要使用此外掛程式在內容中顯示當前時間戳記,您擁有2個簡單的選擇,以實現最大的彈性。

選項1:使用短碼

為了在特定文章或頁面中顯示輸出,使用此代碼:

[Current_Date title="custom-title"]

或者

[Current_Date]

為了在WordPress模板中顯示輸出,使用此代碼:
<?php echo do_shortcode( '[Current_Date title="custom-title"]' ); ?>

選項2:使用小工具
前往「外觀」>「小工具」,並添加「Current_Date」小工具以展示在您想要的位置。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Current Date for Posts, Pages, or Template」→ 直接安裝(推薦)

原文外掛簡介

SHOW CURRENT TIME AND DATE
Have you ever wanted to show the date of today in your website and keep it automatically updated for Search Engines and visitors?
This plugin gives you maximum flexibility to choose the format and timezone for current timestamp.
SEO-friendly and lightweight code
This plugin contains lightweight code to be very fast to load, SEO-friendly, and it is developed to have full compatibility with WordPress 3.1 (2011) up to WordPress 5+ (2019), from PHP 5.6 up to PHP 7.3.
FEATURES:

Select your timezone from a list of dozens of options.
Choose your favourite format to show the date
Lightweight code to quickly load the page and keep a good pagespeed score
No cookies are set by this plugin to visitors
Compatible with all resolutions: desktop, tablet, and smartphones

HOW TO USE:
In order to display current timestamp in your content using this plugin, you have 2 easy options to have maximum flexibility.
OPTION 1: Use a shortcode
In order to display the output in your specific posts or pages use this code:
[Current_Date title="custom-title"]

or
[Current_Date]

In order to display the output in your WordPress template use this code:

OPTION 2: Use a widget
Go to Appearance > Widgets and add Current_Date widget where you want to show it.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon