• Hullo,

    I would like to insert a little text just above the list of links in my Blogroll. For example, “(showing a randomized subset of the complete list)” in between the caption “Cool blogs” and the first blog link on my right sidebar here. Is there a way to do it? I use WordPress version 2.2.1.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    a) Upgrade to WordPress 2.2.3. 2.2.1 and 2.2.2 have security problems.

    b) Edit your sidebar code in the theme and add whatever you want to add just after <h2>Cool blogs</h2>.

    Thread Starter manojit

    (@manojit)

    Yes, I need to upgrade, thanks for reminding.
    The problem with your point (b) is that I am using “<?php wp_list_bookmarks(‘orderby=rand&limit=20’); ?>” in my sidebar to access Blogroll. The header “Cool blogs” is changed via Manage->Categories->Edit on my Dashboard, so there is no “<h2>Cool blogs</h2>” in my sidebar.

    Thanks again.

    Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    Ahh, I see. Okay, try this then:

    <?php wp_list_bookmarks("orderby=rand&limit=20&title_after=</h2>Here's some text I want to add!"); ?>

    Or, if you prefer, this is simpler to read (IMO):

    <?php wp_list_bookmarks(
    array(
    'orderby' =>'rand',
    'limit'=>'20',
    'title_after'=>"</h2>Here's some text I want to add!",
    )); ?>

    Thread Starter manojit

    (@manojit)

    Wonderful! Here is the fruit of your labor!

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

The topic ‘Inserting text in Blogroll’ is closed to new replies.