Forums

Adding line breaks - but why? (3 posts)

  1. shadow
    Moderator
    Posted 4 years ago #

    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 :)

  2. podz
    Support Maven
    Posted 4 years ago #

    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 :)

  3. shadow
    Moderator
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.