【发布时间】:2011-07-07 20:53:39
【问题描述】:
我尝试了以下方法,但它不起作用:
<div class="entry">
<?php
echo the_date() . " " . the_category();
if ( $woo_options['woo_post_content'] == 'content' || is_single() ) { the_content(__('Continue Reading →', 'woothemes') ); } else { the_excerpt(); }
if ( $woo_options['woo_post_content'] == 'content' || is_singular() ) wp_link_pages( $page_link_args );
?>
现在输出看起来像这样:
July 7, 2011
Sports
我想删除两者之间的换行符,使其看起来更像这样(都在一行上):
July 7, 2011 Sports
【问题讨论】:
标签: php wordpress function line-breaks