Forum Replies Created

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter murky

    (@murky)

    I’ve got it going, though I have yet to style it. It’s hidden under an ‘if this function is available’ thing at the moment with the plugin disabled until I get a chance to style nicely.

    Cheers,

    Thread Starter murky

    (@murky)

    I’m glad it’s not just me… I’m hoping that someone with the skills to do something about it also likes it!

    Of course, the list would have appropriate classes built into each list item, things like ‘thiscat’, ‘sibling’, ‘parent’, ‘child’ and so forth!

    The ‘Fold Category’ thing looks pretty close. I’ll have to explore it.

    Thread Starter murky

    (@murky)

    I have a solution, it’s not quite what I want – I’d have liked to be able to put it into the appropriate place of the parent category list. It relies on the breadcrumbs plugin for the parents.

    <?php if (is_category()) { ?>
    <li class="related">
    <h2>Related Categories</h2>

    <ul>
    <?php if (function_exists('breadcrumb')) {
    breadcrumb('home_never=1&before=<li>&after=</li>&sep=');
    } ?>

    <?php
    $query='child_of=' . $cat;
    wp_list_cats($query);

    ?>

    </ul>
    </li>
    <?php } ?>

    I also have the following style declared:

    li.related ul.children {display: none;}

    To see it in action, look here and click around ‘related links’.

    Ideally, I’d like to do it entirely with native wp commands (i.e. not reliant on plugin). However, until then….

    Semantically, the parent categories should be nested lists, but I couldn’t see how to make that work at all!

    Thread Starter murky

    (@murky)

    Sorry…. typed search into wrong box

Viewing 4 replies - 16 through 19 (of 19 total)