排序
WordPress添加文章更新或过期失效提示
1.将下面的函数代码加入到主题目录下functions.php文件中。 //文章过期提示 function article_time_update() { date_default_timezone_set('PRC'); $newdate=time(); $updated_date = get_the_m...
WordPress文章页面添加文章字数和阅读时间
1、在主题目录下functions.php文件把下面的代码添加进去: // 文章字数和阅读时间 function count_words_read_time () { global $post; $text_num = mb_strlen(preg_replace('/s/','',html_enti...