我刚刚开始使用Wordpress(主题开发),并且由于很棒的功能,例如bloginfo(' description')和其他我的静态主页看起来很像常规网站,但可以使用Wordpress Dashboard进行编辑
但是现在,我想在我的主页上添加更多信息,我可以通过仪表板进行编辑。我想这是非常基本的Wordpress,简单的Wordpress函数或MySQL查询就足够了,但我似乎无法找到它。
这是我现在的代码:
<div class="fp-container">
<div class="fp-border">
<h1 class="fp-description"><?php bloginfo('description'); ?></h1>
</div>
<div class="fp-text">
<p><?php bloginfo('description'); ?></p>
</div>
正如您所看到的,&#39;&lt; p为H.&#39;和&#39;&lt; / p为H.&#39;我第二次调用该描述,如何调用可以通过仪表板输入的另一个字符串?
里克多维
答案 0 :(得分:0)
请试试这个:
<div class="fp-container">
<div class="fp-border">
<h1 class="fp-description"><?php bloginfo('description'); ?></h1>
</div>
<div class="fp-text">
<?php the_content(); ?>
</div>