文章归档

wordpress文章不输出标题

                     <?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; ?>

Mini Pagenavi

/* 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;

阅读全文——共984字

在WordPress中插入表格

/*----------table----------*/ table.table { border-spacing:2px; border-collapse:separate; background-color:#FFF;

阅读全文——共619字

comment_reply_link()

Usage

<?php comment_reply_link( $args, $comment, $post ) ?>

-------------------------------------------------------

阅读全文——共977字

WordPress 评论词语替换

//评论词语替换
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;
}

无觅相关文章插件,快速提升流量