Top

Revolution Theme Optimisation: Recent Posts Count

January 10, 2008

On your homepage you’ll have a righthand sidebar containing your recent blog posts. Once you have several posts you may find that your list of recent posts is longer than you want it to be - you don’t really want the list to be greater than the height of the main image.

You can modify how many entries the recent posts list will display. After a couple of attempts six entries seems to work for my own homepage. To modify the number of displayed posts edit the file home.php and look for this bit of code and change the default setting to your preference (I’ve bolded my setting of 6):

<div id=”homepageright”>

<h3>Recent Blog Posts</h3>
<ul>
<?php get_archives(’postbypost’, 6); ?>
</ul>

</div>

Thanks to Melbourne, Australia, internet services company fatdog for prompting this useful post.

Comments

4 Responses to “Revolution Theme Optimisation: Recent Posts Count”

  1. David Airey on January 10th, 2008 2:16 pm

    Brian’s Revolution theme is a great choice.

    I know he put a lot of work into it, and it shows with its professionalism.

    Will you be tailoring the look any more?

  2. JC on January 10th, 2008 2:23 pm

    Hi David

    Yep, the new variants of Brian’s Revolution theme esp. the tech one are great.

    Tailoring the look? …I’ll probably be wanting a new logo at some point this year when I know what it is I’m actually after - you’re on my list of designers to contact of course!

  3. David Airey on January 10th, 2008 2:26 pm

    And it would be a pleasure to help out with that.

    Let me know if you have any questions in the meantime.

    All the best.

  4. free tickets on January 10th, 2008 2:46 pm

    I assume this just changes the number of recent posts on the home page or does it change the number of posts on every page that contains the ‘recent posts’ feature?

Got something to say?





Bottom