【发布时间】:2013-05-25 13:12:32
【问题描述】:
我在我的 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 -->
【问题讨论】:
-
我发现 Wordpress 更改了标题中的链接,因此 标记更改为 <a href="link">
标签: wordpress themes title buddypress