• Resolved prazim

    (@prazim)


    Hi,
    I came across a blog the other day where the author segmented her blogroll with spaces between those that begin with a different letter (so the A’s were all grouped together, etc). It made it very easy to peruse and I’d like to do that on my own blog. Does this require a plug in, or special coding?
    Thanks!
    Sue

Viewing 4 replies - 1 through 4 (of 4 total)
  • Personally haven’t run across this in the past…. Did you consider contacting the site’s author/maintainer and asking how it was done?

    Thread Starter prazim

    (@prazim)

    Actually, I think it was a blogger platform blog.

    Thread Starter prazim

    (@prazim)

    Hi,
    I wanted to share with you that I have figured out how to do this.

    First of all, create separate categories for each group of blogs beginning with each letter of the alphabet for which you have blogs; for example: blogs_a, blogs_d, etc, and make note of the category id WordPress assigns to each one.

    Edit your sidebar.php file where you want the blogroll to appear and insert this code:

    <h2>Great Blogs (or whatever you want to call them)</h2>

      <?php wp_list_bookmarks(‘category=7&categorize=0&title_li=0′); ?>

    replace the “7” in the string “category=7” with each new blog category you want to present and insert the

      and

    codes to separate each group.

    That’s it!

    I just combined prazim’s code explanation of wp_list_bookmarks, with Otto’s PHP Code executing widget:
    http://wordpress.org/extend/plugins/php-code-widget/

    This is the first time I’ve been able to separate my bookmarks by category, into different sidebars, using Widgets. (Normally I just don’t even use widgets, the code is easier for me, but in this case I needed the widgets for a client site to make it easier for them to shift the puzzle pieces around).

    I just put that code right into the PHP widget.

    <?php wp_list_bookmarks('category=7&categorize=0&title_li=0'); ?>

    Oh, I added a few more parameters that I heard about here:
    http://codex.wordpress.org/Template_Tags/wp_list_bookmarks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Segmenting blogroll’ is closed to new replies.