Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
隐藏标题为wordpress post不';我没有头衔_Wordpress - Fatal编程技术网

隐藏标题为wordpress post不';我没有头衔

隐藏标题为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_

我相信事情正在变得越来越热,没有标题的显示正确,空白,但标题现在不是链接,也不是h2,它只是简单的文本。有什么建议吗

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