• Resolved Adrenaline22

    (@slogmaps)


    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 https://www.googlemaps.si

    Thanks in advance boys

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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); ?>

    Thread Starter Adrenaline22

    (@slogmaps)

    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);

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

    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.

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

    Thread Starter Adrenaline22

    (@slogmaps)

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

    “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.

    Thread Starter Adrenaline22

    (@slogmaps)

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

    <?php get_linksbyname(”, ‘

    • ‘, ‘
    • ‘, ”, TRUE, ‘name’, FALSE, TRUE); ?>

      with this line:

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘funny problem in the links section’ is closed to new replies.