Support » Fixing WordPress » Adding External Links

  • Resolved grapixeye


    In my sidebar I have a section called General Store, but I’ve been searching for a way to add “external” links to it underneath the heading…just like the Wine List. Not sure where this goes or if I can use the Controls in WP to do this or to code it by hand. I’ve gone through all of the info here and nothing seems to suit. I’m pretty new and this so any help would be appreciated. This is my site:

Viewing 13 replies - 1 through 13 (of 13 total)
  • In the Links Manager, you can have link categories. So you could have a Wine List link category, and then a General Store link category. Then when you add a link, you just tell it what category you want it in.

    If you set up categories, you may need to change the tag you are using to get the Wine List, because depending upon what you are using, it might pull all of the General Store links also. Post back if you need help getting that straightened out.

    Thats a no-go. I tried to add the link “Your Mac Life” to the General Store “section and as you can see it ended up under Wine List. I even created a category called General Store but it still went to the Wine List Section. What am I doing wrong. I want it under The General Store section.

    What tag are you using to get the links now?

    This is the only thing I can find…it was sidebar.php file and I used it to change the name of the section to General Store. Not sure I understand the rest of the code. I even tried to use the same code thats under General Store. Is this the code that you mean..?

    <h2>General Store</h2>

      <?php wp_list_pages(‘title_li=’ ); ?>

    <h2><?php _e(‘The Pantry’); ?></h2>

      <?php wp_list_cats(‘optioncount=1’); ?>

    <h2><label for=”s”><?php _e(‘Search:’); ?></label></h2>

    • <form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
      <div style=”text-align:center”>
      <input type=”text” name=”s” id=”s” size=”15″ />
      <input type=”submit” name=”submit” value=”<?php _e(‘Search’); ?>” />

    <h2><?php _e(‘Monthly:’); ?></h2>

      <?php wp_get_archives(‘type=monthly&show_post_count=true’); ?>

    <h2><?php _e(‘RSS Feeds:’); ?></h2>

    I’m guessing here, but the title of “Mr Obvious” requires some guesswork and creativity (private joke) and it will be mine. If the wine list is your blogroll, add another category of links.
    Dashboard > Links > Link Categories
    The Add a Link panel is below the list of existing link categories.
    Different Themes handle them differently (which gives me a reason for flaunting my own efforts) so flip through a few to see before you plunge into hand coding.

    Link categories are different than Post Categories.

    Whoa — the competition in the “Mr Obvious” race is getting fierce!

    What are the first lines in the sidebar.php? What is above the <h2>General Store</h2> line?

    Nothing is above that. Thats the first line.

    To the Mr.Obvious post…I tried that…I have a links catagory called General Store and a link in it for “Your Mac Life”. But for some reason that doesn’t work. I’l probably have to remove that section totally and start over from scratch…if I can figure that out (smiles) sigh!

    You may need to add or modify <?php get_links_list(‘id’); ?> if get_links is how it reads now. Some themes (like Benevolence) don’t have that line in their sidebar template ‘tweaked’ yet. Hey I’m old and a newbie — gimme a break!

    Ok, this is interesting. It looks like the get links list tag might be at the end of your index.php, because the links list doesn’t show on the other pages. Do you want the links to always show in the sidebar, or only on the main page?

    Check the end of index.php and see if you can find a code for get_link_list or something with links in it.

    <h2>General Store</h2>
    <?php get_links_list(‘id’); ?>

    like this? Or is that somewhere else in another .php file?

    By the way i”m using the Theme called Connections

    I think I may have found it! This is in the index.php file…maybe all I need to do is to copy this and change the title.:

    <div id=”sidebar”>
    <h2><?php _e(‘Wine List’); ?></h2>

      <?php get_links(‘-1’, ‘

    • ‘, ‘
    • ‘, ‘ ‘); ?>

    Great…that solved the Problem! Thanks a bunch guys!!!!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Adding External Links’ is closed to new replies.