0

我在我的 Wordpress 页面上安装了自己的主题和 Buddypress,但是当我更新到最新版本 (1.7.2) 时,BuddyPress 页面的标题显示不正确(个人资料页面、群组页面……):它们以 HTML 形式显示。在二十十二主题上,一切看起来都很好。作为替代方案,我尝试为 BuddyPress 创建一个新主题(使用主题文件夹中的组、成员、……文件夹),但我发现要做的工作太多。只有标题没有简单的解决方案。我的组标题的屏幕截图: 群组页面的标题
屏幕截图应该如何看:
在此处输入图像描述

<div id="page">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 id="page_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p id="author"><?php the_author(); ?></p>
<div class="content">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
<?php comments_template(); ?>
</div><!-- main -->
4

1 回答 1

0

我在我的functions.php 中使用了CSS Tricks中的“从帖子标题中删除私有/受保护”片段。我删除它后,它再次起作用。

于 2013-05-28T10:40:02.350 回答