• Resolved mprivett

    (@mprivett)


    Hey,

    Was wondering if anyone could help me figure out how to get my links in the sidebar to list by category? Any help would be much appreciated.

    I should add that my website is https://www.themattrix.com and I’m using a modified version of the Pool theme, and i’m running 2.0

    Thanks,
    Matt

Viewing 9 replies - 1 through 9 (of 9 total)
  • Not too sure what your sidebar.php is using but the Template Tag, get_links_list should do what you want. The themes/default/sidebar.php has an example of that.

    More info:
    Link Categories
    Customizing_Your_Sidebar

    Thread Starter mprivett

    (@mprivett)

    Thank you… one more question… I’m looking around different files to try to figure out where it would be appropriate to edit how the category names appear now. They are in big, bold type. Any help would be appreciated. Thank you.

    Not sure if this is the most effiecient since it means put a section for each Link Category in sidebar.php but at least it works:

    <div id="blogroll">
    <h3>Blogroll</h3>
    <ul>
    <?php wp_get_linksbyname('Blogroll') ?>
    </ul>
    <h3>Christian Resources</h3>
    <ul>
    <?php wp_get_linksbyname('Christian Resources') ?>
    </ul>
    </div>

    Not sure if this is the most effiecient since it means puttin a section for each Link Category in sidebar.php but at least it works:

    <div id="blogroll">
    <h3>Blogroll</h3>
    <ul>
    <?php wp_get_linksbyname('Blogroll') ?>
    </ul>
    <h3>Christian Resources</h3>
    <ul>
    <?php wp_get_linksbyname('Christian Resources') ?>
    </ul>
    </div>

    Oops forgot:

    Of course you’d need to continue for each of your Link Categories

    Thread Starter mprivett

    (@mprivett)

    Thanks Michael. Not sure if you understood my second question, though. I want to reduce the size of the text that the category names are appearing in, a little bigger than the size the actual link names are appearing in, but not as big as they are now. Does this solution accomplish this? I see nothing about a size or anything.

    “I see nothing about a size or anything.”

    It’s the h3 that is doing that, assuming you’ve got something close to the orginal pool theme.

    Thread Starter mprivett

    (@mprivett)

    Thank you.

    <div id=”blogroll”>
    <h3>Blogroll</h3>

      <?php wp_get_linksbyname(‘Blogroll’) ?>

    <h3>Christian Resources</h3>

      <?php wp_get_linksbyname(‘Christian Resources’) ?>

    </div>

    How can you get this to do automatically i.e. not having to put:

    <?php wp_get_linksbyname(‘name-of-category-here’) ?> etc etc

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Getting links to list by category’ is closed to new replies.