php函数琐记

2013-01-14 

get_settings($name) 获取全部设置信息

参考 http://www.yoursite.com/wp-admin/options.php

示例

<?php echo get_option('blogname'); ?>

the_permalink()

将文章URL作为文本形式显示

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

the_title()

<?php the_title( $before, $after, $display ); ?>
<?php the_title('<h3>', '</h3>'); ?>

显示或返回当前日志的标题,类似函数 the_title_attribute();

Bloginfo()

参考: 

http://www.wordpress.la/codex-%E6%A8%A1%E6%9D%BF%E6%A0%87%E7%AD%BE-bloginfo().html

原文地址:https://www.cnblogs.com/needrunning/p/2860108.html