• 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)
  • Thread Starter genoa

    (@genoa)

    Ok, bumpin and clearifing….

    I guess what I am asking is…

    I have this:

    <?php //if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php
    if ($posts)
    {
    function stupid_hack($str)
    {
    return preg_replace(‘|\s*<ul class=”linklog”>|’, ”, $str);
    }
    ob_start(‘stupid_hack’);
    foreach($posts as $post)
    {
    start_wp();
    ?>

    But now I want to add another one that isn’t linklog class. I want to add a quickies but let it do the same thing so there isn’t unordered list on top of each other. How do I add another one like..
    return preg_replace(‘|\s*<ul class=”quickies”>|’, ”, $str);

    Hmmm…10 months ago. Darn. I would love to hear more about this as well if anyone has any ideas.

    What would be the method for adding additional specially formatted posts in the same manner as and in addition to Matt’ Asides?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘More Category Styles’ is closed to new replies.