• I am new and I need some help. I tried searching, but I can not seem to find what I am looking for.

    Problem: I have a left and right side bar that surrounds the posting area. As of right now – The Links are defaulted on the left side which is fine. However – I would like the break out the links. I would like to have some link topics on one side bar and some on the other.

    How can I do this?

    Thanks in advance,
    Austinrob

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sean

    (@aristophanes)

    If you want to put archives on one side and categories on the other, you can do so easily by finding and moving the two lines of code (most likely in sidebar.php) that look like this:

    <?php wp_get_archives(''); ?>

    for archives and

    <?php wp_list_cats(''); ?>

    for categories.

    If you mean put some categories on one side but other categories on the other, we have the same problem and I haven’t had luck with a solution so far. I know there are plug-ins which can achieve this, but personally I’d rather not resort to one.

    I would like to know how to split the category list as well.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    If you want to split categories across sidebars, then the easiest way is to group them differently.

    For example, you could make a category called Left and another called Right. The make all your other categories children of those two.

    Then, find the ID numbers of Left and Right. To then show only the categories under one of those, you’d do something similar to this:
    wp_list_cats(‘sort_column=name&child_of=XXX’);
    …where XXX is the ID of either Left or Right.

    An alternative method that doesn’t use groupings like this would simply be to exclude the categories you don’t want to display on each side:
    wp_list_cats(‘sort_column=name&exclude=10, 15’);
    … that would display the categories but not display the categories with ID’s 10 and 15, for example.

    More options are covered in the codex: https://codex.www.ads-software.com/Template_Tags/wp_list_cats

    Sean

    (@aristophanes)

    Thank you very much. That’s exactly what I need.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Break Out Of Links between 2 side bars?’ is closed to new replies.