WordPress常用的一些代码

2013年09月6日
< ?php bloginfo('name'); ?>
调用博客标题

< ?php bloginfo('url'); ?>
调用博客链接

< ?php bloginfo(’description’); ?>
添加博客描述

< ?php the_content(); ?>
显示日志内容

< ?php the_category(’, ‘) ?>
调用日志的在的所有类别

< ?php the_author(); ?>
输出当前日志作者的名字

post-< ?php the_ID(); ?>
每篇日志的 ID

< ?php the_title(); ?>
日志的标题链接

< ?php posts_nav_link(’in between’,"before’,"after’); ?>
后一页和前一页

< ?php wp_list_cats(’sort_column=name&optioncount=1&hierarchical=0′); ?>
分类链接列表

< ?php wp_list_pages(); ?>
页面链接

< ?php _e(’Archives’); ?>
< ?php wp_get_archives(’type=monthly’); ?>
按月调用存档链接列表

< ?php get_links_list(); ?>
增加友情链接列表

  • < ?php _e(’Calendar’); ?>

    < ?php get_calendar(); ?>
  • 增加日历

    Copyright © 2007 < ?php bloginfo(’name’); ?>

    添加版权信息

     


    sicnature ---------------------------------------------------------------------
    Your current IP address is: 3.237.91.98
    Your IP address location: 美国弗吉尼亚阿什本
    Your IP address country and region: 美国 美国
    Your current browser is:
    Your current system is:
    Original content, please indicate the source:
    同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
    sicnature ---------------------------------------------------------------------
    Welcome to reprint. Please indicate the source https://www.myzhenai.com/post/1323.html

    没有评论

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用*标注