<?php if (!is_tag('这里是不想输出的文章标签')): ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php endif; ?>
文章归档
wordpress文章不输出标题
发布于 八月 16, 2010
Mini Pagenavi
发布于 八月 14, 2010
/* Mini Pagenavi v1.0 by Willin Kan. */
function pagenavi( $p = 2 ) { // 取当前页前后各 2 页
if ( is_singular() ) return; // 文章与插页不用
global $wp_query, $paged;
$max_page = $wp_query->max_num_pages;
在WordPress中插入表格
发布于 八月 13, 2010
/*----------table----------*/
table.table {
border-spacing:2px;
border-collapse:separate;
background-color:#FFF;
comment_reply_link()
发布于 八月 13, 2010
Usage
<?php comment_reply_link( $args, $comment, $post ) ?>-------------------------------------------------------
WordPress 评论词语替换
发布于 八月 12, 2010
//评论词语替换
add_filter('comment_text', 'replace_text', 50);
function replace_text ($text = '')
{
$text = str_replace("Tokyo Hot", "<a href='http://014.cc/about'>Tokyo Hot</a>", $text);
return $text;
}