More Category Styles
-
Alright, so I did all the task to get my asides working but now I have a question about the “hack.”
I want to add another category with a different style from the “asides” but I still want to use UL to display them.
I noticed you’ll have to add this to the template:
<?php
if ($posts)
{
function stupid_hack($str)
{
return preg_replace(‘|\s*<ul class=”asides”>|’, ”, $str);
}
ob_start(‘stupid_hack’);
foreach($posts as $post)
{
start_wp();
?>So this makes me wonder…if I want to another another category with a certian style for the UL, do I have to add something to this little hack? If so, what do I have to add?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘More Category Styles’ is closed to new replies.