• Can anyone tell me why this code is adding line breaks to my list of categories?
    <?php list_cats('0', '', 'name', 'asc','',0,0,1); ?>
    I am using this to call my list and after hours of pouring my brains out over it I still cannot see why it is doing it.
    You can see it in action at http://shadows.os42.com/index.php?page_id=754
    If anyone can explain it would be very helpful. Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • WP 1.2.2
    template-functions-category.php
    Line 267
    function list_cats
    and in that, on line 331
    echo "t$link
    n";

    You could tinker around there maybe … after backing up the original file of course.
    That would also affect that tag everywhere else, so you might want to check how you use tags elsewhere, though with Manji as your base, sidebar’s aren’t an issue 🙂

    Thread Starter shadow

    (@shadow)

    Thanks Podz – that explains it.
    I can’t find the reference to
    in my 1.3 nightly. That’s not to say it isn’t there of course. It’s just that I can’t find it.
    Don’t worry. The list isn’t a huge issue – I was just playing and wanted to see if I could take it out of a list format.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding line breaks – but why?’ is closed to new replies.