WordPress 主体模板 PHP代码

复制代码<?php the_content(); ?> 日志内容<?php if(have_posts()) : ?> 确认是否有日志<?php while(have_posts()) : the_post(); ?> 如果有,则显示全部日志<?php endwhile; ?&...
复制代码<?php the_content(); ?> 日志内容<?php if(have_posts()) : ?> 确认是否有日志<?php while(have_posts()) : the_post(); ?> 如果有,则显示全部日志<?php endwhile; ?> 结束PHP函数”while”<?php endif; ?> 结束PHP函数”if”<?php get_header(); ?> header.php文件的内容<?php get_sidebar(); ?> sidebar.php文件的内容<?php get_footer(); ?> footer.php文件的内容<?php the_time(‘m-d-y’) ?> 显示格式为”02-19-08″的日期<?php comments_popup_link(); ?> 显示一篇日志的留言链接<?php the_title(); ?> 显示一篇日志或页面的标题<?php the_permalink() ?> 显示一篇日志或页面的永久链接/URL地址<?php the_category(‘, ‘) ?> 显示一篇日志或页面的所属分类<?php the_author(); ?> 显示一篇日志或页面的作者<?php the_ID(); ?> 显示一篇日志或页面的ID<?php edit_post_link(); ?> 显示一篇日志或页面的编辑链接<?php get_links_list(); ?> 显示Blogroll中的链接<?php comments_template(); ?> comments.php文件的内容<?php wp_list_pages(); ?> 显示一份博客的页面列表<?php wp_list_cats(); ?> 显示一份博客的分类列表<?php next_post_link(‘ %link ‘) ?> 下一篇日志的URL地址<?php previous_post_link(‘%link’) ?> 上一篇日志的URL地址<?php get_calendar(); ?> 调用日历<?php wp_get_archives() ?> 显示一份博客的日期存档列表<?php posts_nav_link(); ?> 显示较新日志链接(上一页)和较旧日志链接(下一页)<?php bloginfo(‘description’); ?> 显示博客的描述信息
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
wordpress教程

wordpress摄影拍照企业官网怎么制作

2023-2-16 15:54:33

wordpress教程

有什么适合做企业官网的 WordPress 主题?

2023-2-16 15:54:36

!
你也想出现在这里?立即 联系我们吧!
信息
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
搜索