WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] funny problem in the links section (9 posts)

  1. slogmaps
    Member
    Posted 7 years ago #

    In the links section: After every link there is a zero '0' written at the end of each link. I just reinstalled (clean install) the 2.2 version and this happened.

    Any of the pros have a solution for this mess?
    You can check it at http://www.googlemaps.si

    Thanks in advance boys

  2. MichaelH
    Member
    Posted 7 years ago #

    I'm going to guess you are using the template tag, get_links() and if you are then you've probably got an incorrect list of parameters.

    Count the paramters, there's probably 10 in your list but there should be eleven (11) as this example describes:

    <?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', TRUE, TRUE, -1, TRUE, TRUE); ?>

  3. slogmaps
    Member
    Posted 7 years ago #

    Wow, that was a fast anwser, thanks!

    I'm not sure what you are talking about. The only thing similiar that I found was:

    1.) in the ocean's mist template, sidebar.php:

    <?php get_linksbyname('', '
    <li>', '</li>
    ', '', TRUE, 'name', FALSE, TRUE); ?>

    2.) in the bookmark-template.php

    get_links($cat->cat_ID, '
    <li>', "</li>
    ", "\n", true, 'name', false);
  4. MichaelH
    Member
    Posted 7 years ago #

    Ocean Mist v1.2 seems to be using wp_list_bookmarks. If you aren't using that version can you upgrade?

  5. Calítoe.:. (Cristina MJ)
    Member
    Posted 7 years ago #

    I am having exactly the same issue.
    My tag for getting the links was
    <?php get_links('-1', '<li>', '</li>', '', FALSE, 'id', TRUE, TRUE, -1, TRUE); ?>

    I changed it to
    <?php get_links('-1', '<li>', '</li>', '', FALSE, 'id', TRUE, TRUE, -1, TRUE, TRUE); ?> as MichaelH suggested and nothing changed.

    I guess we should use the wp_list_bookmarks tag now. I remember it used to give a lot of troubles in 2.1 (not listing sub-categories and so on), but it must be the tag to use for displaying links in version 2.2.

    I really think that it would be better for everyone to launch a list with "things you should change now" with every new release: since I have upgraded to 2.2 I had to change quite a lot of files because of weird errors, the .htaccess file being the most annoying and important thing.

  6. MichaelH
    Member
    Posted 7 years ago #

    Sorry, I was wrong, it seems Ocean Mist 1.2 uses the deprecated get_linksbyname so as Calitoe suggests, use wp_list_bookmarks instead.

  7. slogmaps
    Member
    Posted 7 years ago #

    so you suggest to replace in all filesget_linksbyname with wp_list_bookmarks and leaving all the parameters as they are?

  8. Dgold
    Member
    Posted 7 years ago #

    "I really think that it would be better for everyone to launch a list with "things you should change now" with every new release: since I have upgraded to 2.2 I had to change quite a lot of files because of weird errors, the .htaccess file being the most annoying and important thing."

    I agree! I have had to change several things in my themes since 2.2, and I didn't see any warnings or instructions about it, until I saw broken parts of my blog and went searching for answers. The 2 big things I had to change were the template-tag for listing categories, and the template tag for lising links. Both sections of my sidebar were broken by 2.1 or 2.2.

    What's the htacess thing with 2.2, I haven't changed anything in my htaccess since upgrading?

    There are several good Blogs About WP that give tips about changes you need to make. But more of this info should be in the official Changelog when a new version comes out.

  9. slogmaps
    Member
    Posted 7 years ago #

    problem solved. With ocean mist you have to change this in sidebar.php:

    <?php get_linksbyname('', '

  10. ', '
  11. ', '', TRUE, 'name', FALSE, TRUE); ?>

    with this line:

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.