我想知道是否有更好的方法在 Wordpress 仪表板中创建帖子。我解释一下自己,我创建了两个类别,称为“新闻 - 左侧”和“新闻 - 右侧”,我在左侧显示一些帖子,在页面右侧显示一些帖子。但是,我创建的帖子是用这样的 html 标签制作的:
“新闻 - 左侧”:
<div id="about">
<div id="mug-shot" class="thin-column">
<div class="thumbnail"><img class="attachment-thumbnail wp-post-image" title="A web picture" src="http://www.marketwize.co.uk/communities/3/004/007/028/723/images/4538143501.jpg" alt="Web tools" width="240" height="350" /></div>
</div>
<div id="about-page" class="thin-column">
<div class="page-content">
<h3 class="inline-subtitle">TEXT</h3>
<h1 class="inline-title">TEXT</h1>
<div class="content">
<div>
Just simple text, simple text.
Another paragraph Another paragraph.
</div>
</div>
</div>
</div>
<div id="contacts" class="thin-column">
<h3 class="inline-subtitle">Please do not hesitate to</h3>
<h1 class="inline-title">Contact</h1>
<div>
Company name
Adress
<em><a title="Email" href="mailto:test@test.com" target="_blank">email@email.com</a></em>
+0 000 000 0000
On <a title="Twitter" href="http://www.twitter.com/" target="_blank"><em>Twitter</em></a>
</div>
</div>
<div id="book-list" class="thin-column">
<h3 class="inline-subtitle">H3 title</h3>
<div>
<h4>H4 tag</h4>
<em>EM text</em>
<a title="Title | Title2" href="https://www.google.co.uk/" target="_blank">GOOD Magazine</a>
</div>
</div>
</div>
“新闻 - 右侧”
<div class="thumbnail"><img class="attachment-thumbnail wp-post-image" title="Me on my snowboard" src="http://i.telegraph.co.uk/multimedia/archive/02016/WSS-fest_2016290b.jpg" alt="Snowboarder" width="240" height="350" /></div>
<h3 class="inline-subtitle">Illustration title</h3>
<h1 class="inline-title">28.04.2013 (A date)</h1>
Here is my text, with a link to <a href="https://www.google.co.uk/" target="_blank">Google</a>.
因此,在帖子中,我正在填充 html 标签。有没有办法避免它?(我可以创建自定义字段,但这不方便)。以及如何为这样的新帖子创建默认模板:
<div class="thumbnail">Add your image here</div>
<h3 class="inline-subtitle">Add your illustration title here</h3>
<h1 class="inline-title">Add a date here</h1>
Add your text here.
谢谢