• Resolved breger

    (@breger)


    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)

Viewing 1 replies (of 1 total)
  • Thread Starter breger

    (@breger)

    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='); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘get_bookmarks problem’ is closed to new replies.