【问题标题】:BuddyPress Title displays incorrectlyBuddyPress 标题显示不正确
【发布时间】: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 themes title buddypress


【解决方案1】:

我在我的functions.php 中使用了CSS Tricks 中的“从帖子标题中删除私有/受保护”sn-p。删除后,又恢复了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-13
    • 2017-07-17
    相关资源
    最近更新 更多