[wordpress插件] Current Date for Posts, Pages, or Template帖子,页面或模板的当前日期

wordpress 插件 文章 2020-04-06 22:51 555 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

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

SEO友好且轻量级代码

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

此插件包含轻量级代码,加载速度非常快,对SEO友好,并且已开发为与WordPress 3.1(2011)以及WordPress 5+(2019)完全兼容。

PHP 5.6 up to PHP 7.3.

PHP 5.6到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
    • 此插件未为访问者设置cookie

    • 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.

    为了使用此插件在您的内容中显示当前时间戳,您有2个简单的选项可提供最大的灵活性。

    OPTION 1: Use a shortcode

    选项1:使用简码

    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:
        

    要在WordPress模板中显示输出,请使用以下代码:
        

    <?php echo do_shortcode('[Current_Date title =“ custom-title”]');

    ?>

    ?>

    OPTION 2: Use a widget

    选项2:使用小部件

    Go to Appearance > Widgets and add Current_Date widget where you want to show it.

    转到外观> 小部件,然后在要显示它的位置添加 Current_Date 小部件。

安装步骤

In order to activate the plugin, just go to Plugins > Add New > Upload Plugin and select the .zip file of this plugin.

要激活该插件,只需转到插件>添加新>上载插件,然后选择此插件的.zip文件。

Then click on activate and the plugin has been installed correctly.

然后单击激活,表明插件已正确安装。

INSTALL FROM WITHIN WORDPRESS

从WORDPRESS中安装

    1. Visit the plugins page within your dashboard and select ‘Add New’;
    2. 访问信息中心内的插件页面,然后选择“添加新内容”;

    3. Search for ‘Current Date for Posts, Pages, or Template’;
    4. 搜索“帖子,页面或模板的当前日期”;

下载地址
https://downloads.wordpress.org/plugin/current-date-for-posts-pages-or-template.zip
-EOF-

AI助手支持GPT4.0