隐藏标题为wordpress post不';我没有头衔
我相信事情正在变得越来越热,没有标题的显示正确,空白,但标题现在不是链接,也不是h2,它只是简单的文本。有什么建议吗隐藏标题为wordpress post不';我没有头衔,wordpress,Wordpress,我相信事情正在变得越来越热,没有标题的显示正确,空白,但标题现在不是链接,也不是h2,它只是简单的文本。有什么建议吗 <?php if (the_title()) { ?> <h2> <a href="'<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_
<?php if (the_title()) { ?>
<h2>
<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 } else { ?><?php }; ?>
应该能用。没问题。请通过单击旁边的勾号接受答案作为解决方案,以查找解决方案。
<?php if (get_the_title() != "") { ?>
<h2><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 } ?>