动态时间 用于 wordpress


Dynamic time PAge for wordpress

我正在尝试制作一个wordpress主题。

我创建了一个页面.php用于动态页面帖子和其他内容。

现在我想创建一个仅显示时间的时间显示页面。

我为此.html代码,但我对我将为此创建的.php感到困惑。

注意:我的页面和显示页面CSS的时间完全不同。

您可以在主题根目录中为此any_name.php创建模板文件。

首先在文件中插入以下代码。

<?php
  /*
    Template Name: Time
    */
get_header();
your Code Here
get_footer();

请参阅:https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/