Archive for Tips & Tricks

WordPress First Post Only On Frontpage

If you check out my theme, you would notice that only the first latest post of my blog is expanded and showed and the rest of the post follows with summary. Some people would just love to have this kind of theme as it’s more clean when viewed. Here is the hack on how i did it. It’s not the cleanest code and im pretty sure there are better ways to do it, but it just works. Editing should be done to index.php file.

Basically the concept is to create multiple loop with post limitations and offset. Open up index.php and follow this code. The code below is used to display only the 1st post of your blog and it’s up to you to design it.

[php]

[/php]
Read the rest of this entry »

Comments (2)