0
我刚开始使用Wordpress(主题开发),并且由于诸如bloginfo('description')等其他功能,我的静态主页看起来很像普通网站,但可以使用Wordpress Dashboard进行编辑。通过Wordpress更改FrontPage内容
但是现在,我想在我的主页上放置更多信息,我可以通过仪表板进行编辑。我想这是非常基本的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>
正如你所看到的,“< P>”和“</P>”我叫第二次的描述之间,我怎么能叫另一个可以通过仪表板输入的字符串?
里克
谢谢,这工作。但是如果我想添加另一个文本框和另一个文本框。我不能使用the_content()我猜? –
你可以使用<?php the_content(); ?>只有一次。 –