Forums

[resolved] how to exclude blogroll categories in the link widget (3 posts)

  1. deltina
    Member
    Posted 5 years ago #

    i know how to do this in the code (the old way), but where do i find the code for the sidebar widget in a theme to do it

    or...

    does someone know how to use list_bookmarks in a text widget

    ultimately, what i want to do is have a widget that only lists links from one category

    thanks!

  2. MichaelH
    Volunteer
    Posted 5 years ago #

    Use Otto42's pluging phpexec.php which allows you to put php (it's like a text widget) in a widget.

    The code, would be some variation of:
    <?php wp_list_bookmarks('title_li=&categorize=0&category=12&orderby=url'); ?>

    See also:
    Template_Tags/wp_list_bookmarks

    If you use Otto's plugin for 2.2 he has a fix for wp-includes/widget.php linked in the comments where the plugin is available.

  3. deltina
    Member
    Posted 5 years ago #

    thanks, i thought something like that existed

    that is what i was trying to do, was paste php code
    in a text widget - ahem

Topic Closed

This topic has been closed to new replies.

About this Topic