I want to take post from themplate static and post it in theme wordpress and make it dinamic.
I know how to post simple post which contain two element:
-
Title text.
-
paragraph text.
but in my case the post have a style diffrant from simple post.
The static code html which I want to convert it to post theme:
<section id="content">
<div class="container_16">
<div class="p10">
<article class="grid_4">
<h4>Honeymoons:</h4>
<div class="txt-1">Praesent vestibulum aenean Nonummy hendrerit mauris.</div>
<p>Cum sociis natoque penatibus et magnis dis parturient montes ascetur ridiculus
mus. Nulla dui. Fusce feugiat malesuada odio.</p> <a href="#" class="link-1">read more</a>
</article>
<article class="grid_4">
<h4>Honeymoons:</h4>
<div class="txt-1">Praesent vestibulum aenean Nonummy hendrerit mauris.</div>
<p>Cum sociis natoque penatibus et magnis dis parturient montes ascetur ridiculus
mus. Nulla dui. Fusce feugiat malesuada odio.</p> <a href="#" class="link-1">read more</a>
</article>
<article class="grid_4">
<h4>Honeymoons:</h4>
<div class="txt-1">Praesent vestibulum aenean Nonummy hendrerit mauris.</div>
<p>Cum sociis natoque penatibus et magnis dis parturient montes ascetur ridiculus
mus. Nulla dui. Fusce feugiat malesuada odio.</p> <a href="#" class="link-1">read more</a>
</article>
</div>
</section>
How can I add tag html to post as you can see in the below code : ?
-
<article class="grid_4">
-
<
h4>here is the title:</h4>
-
<div class="txt-1">
-
<p>
the style:
Many Thanks.
I think from your question you are looking for something like the code below;
That will certainly help you get going. Note you have omitted a closing
</div>
tag.You might want to look at a custom WP_Query rather than just a standard WordPress Loop, so you can pull the 3 latest posts out of your blog, or pull posts from a specific category.