Subscribe to RSS Feed
Twitter
HIRE ME! home  archives  about  blogroll

Asides continued

25 May 2004

As you may or may not have noticed already, the asides are back in place. I did some wp-hacking, sounds cool eh, don’t you think so? :P

You can find my current my-hacks file here. I’m pretty new to php and wordpress so if these functions can be improved, I’m listening.

I also changed the “recent_posts” function to take these asides into account. We don’t want to see things twice, now do we?

So, what did I put in the index template:
outside the loop
<?php if (!$single) { ?> <div id="asides"><?php get_asides(8, 5); ?></div><div class="clearer"></div> <?php } ?>

and inside the loop
<?php if (!in_category(8) || $single) { ?>

Tsjak, tsjak :)

blog comments powered by Disqus