Recent Posts Alternating
-
I am creating a theme but in my side bar I want to have (for example) the top 3 posts for my tutorials category to show up.
Check out http://dd.adesadesmoines.com/ (not WPed theme, pure CSS/HTML at that time, outdated too)
On the right side you will see how the “latest tutorials” section has 3 parts, changing sides each time.
code
<div class=”detail” align=”left”>
<img class=”iconL” src=”Images/TopIcons/UVmappingIco.gif”>
<h3>UV Mapping</h3>
<p class=”small”>Get the inside scoop on how to UV Map a head inside Maya.</p>
</div><div class=”detail” align=”right”>
<img class=”iconR” src=”Images/TopIcons/UVmappingIco.gif”>
<h3>UV Mapping</h3>
<p class=”small”>Get the inside scoop on how to UV Map a head inside Maya.</p>
</div><div class=”detail” align=”left”>
<img class=”iconL” src=”Images/TopIcons/UVmappingIco.gif”>
<h3>UV Mapping</h3>
<p class=”small”>Get the inside scoop on how to UV Map a head inside Maya.</p>
</div>
/codeSo basically what I think I need is some code for each 3 sections.
code
<div class=”detail” align=”left”>
<img class=”iconL” src=”php code to get Icon for category”>
<h3>Php code to pull title for most recent post</h3>
<p class=”small”>Post Discription</p>
</div>
<div class=”detail” align=”right”>
<img class=”iconR” src=”php code to get Icon for category”>
<h3>Php code to pull title for 2nd most recent post</h3>
<p class=”small”>Post Discription</p>
</div>/codeAnd so on … So what kind of code will allow me to pull the most recent posts by number (if that makes sense) in that category.
The topic ‘Recent Posts Alternating’ is closed to new replies.