![](/img/trans.png)
[英]Adding custom content to wordpress posts, with variables such as $title not showing
[英]Posts content not showing on wordpress
我一直在尝试我所知道的一切以使我的网站显示帖子内容但没有成功。 活动 ZF7B44CFFAFD5C52223D5498196C8A2E7BZ 上的一切都很好地显示,但帖子和页面显示不正确。 我尝试编辑 bp-themes 文件夹中的 single.php 和 page.php 文件,但它仍然没有更正它。 该网站是www.relacc.com.ng
谢谢
希望您已经删除了single.php
文件中的以下代码行:
<?php the_content(); ?>
尝试在<?php the_title(); ?>
之后添加它 <?php the_title(); ?>
行并更新 single.php 文件。 这可能会解决错误。
后来我发现这是由于主索引文件中的 showposts(function) 造成的。 我不得不查找 wordpress 法典并学习艰难的方法:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.