wordpress主题文章页面single.php标签介绍

643 ℃

wordpress主题文章页面single.php标签的一些基本用法,下面web建站小编给大家简单介绍一下各种语法!

获取文章标题

<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>

获取文章标签

<?php the_tags('标签:', ', ', ''); ?>

获取日期

<?php the_time('Y年n月j日') ?>

获取评论数

<?php comments_popup_link('0 条评论', '1 条评论', '% 条评论', '', '评论已关闭'); ?>

获取文章内容

<?php the_content(); ?>

一个提供高质量免版税音乐下载的网站——Kongano

WordPress如何判断当前文章是否是密码保护文章

WordPress版本如何使用str_starts_with和str_ends_with函数

WordPress建站主题下404模板不生效解决方法(宝塔建站)

WordPress如何显示当前文章的评论个数

标签: comments_popup_link, the_content, the_permalink, the_tags, the_time, the_title, wordpress主题, wordpress函数

上面是“wordpress主题文章页面single.php标签介绍”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。

当前网址:https://m.ipkd.cn/webs_3696.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

外贸网站应该如何定义,有哪些功能?
帝国cms用手机访问PC端网站如何自动跳转到手机端
HbuilderX用js判断是在app中执行还是移动
dede织梦后台模块管理空白不显示的解决方法
js如何封装一个获取随机数方法(指定范围)