WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] get_bookmarks problem (2 posts)

  1. breger
    Member
    Posted 6 years ago #

    I am trying to upgrade my template tags on The Airdrie Page to replace depreciated tags for get_linksbyname and have tried to replace the following code

    <?php get_linksbyname('Airdrie Cat Links', '', '', '', FALSE, 'rating', FALSE, FALSE); ?>
    <ul><li id="links"><h2>Airdrie United</h2>
    <li><?php get_linksbyname('Airdrie United', '', '', '', FALSE, 'rating', FALSE, FALSE); ?></li>
    </ul>
    <ul><li id="otherlinks"><h2>Other Links</h2>
    <li><?php get_linksbyname('Other Links', '', '', '', FALSE, 'rating', FALSE, FALSE); ?></li>
    </ul>

    with this

    <?php get_bookmarks('category_name=Airdrie Cat Links'); ?>
    <ul><li id="links"><h2>Airdrie United</h2>
    <li><?php get_bookmarks('category_name=Airdrie United'); ?></li>
    </ul>
    <ul><li id="otherlinks"><h2>Other Links</h2>
    <li><?php get_bookmarks('category_name=Other Links'); ?></li>

    I cannot get it to replicate what it shows on my homepage (http://www.airdrie.net/weblog2)

  2. breger
    Member
    Posted 6 years ago #

    Managed to work this out eventually. If anyone needs a solution then just replace the above code with -

    <?php wp_list_bookmarks('categorize=0&category_name=Airdrie Cat Links&title_li='); ?></ul>
    <ul><li id="links"><h2>Airdrie United</h2></li>
       <?php wp_list_bookmarks('categorize=0&category_name=Airdrie United&title_li='); ?></ul>
    <ul><li id="otherlinks"><h2>Other Links</h2></li><?php wp_list_bookmarks('categorize=0&category_name=Other Links&title_li='); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic