Support » Fixing WordPress » Links and Categories

  • Resolved queenmychl


    I am working with the Travelogue theme, and trying to catagorize my links. Within the panel, I can catagorize them, however, on the main page, it doesn’t do that. My Page I have duplicated the box (so I can have seperate boxes) but I don’t understand the code well enough to decipher it. The code is below (stars added to ensure that it shows in the post). The catagories that I have are 1. Blogroll 2. My Galleries 3. Favorite Sites (in the panel they show: 1: Blogroll 2: My Galleries 3: Favorite Sites)

    All help is greatly appreciated!

    <*div class=”sidebox”>
    <*div class=”boxhead”>

  • <h3><?php _e(‘My Galleries’); ?></h3></div>
    <*div class=”boxbody”>
    <*?php get_links(‘-1’, ‘
  • ‘, ‘
  • ‘, ‘ ‘, 0, ‘category’, 0); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Michelle,
    I’m don’t fully understand your question.

    Are you trying to have specific links show up under the specific category’s box on the front page? If so, then you’ll need to make sure that you add the link to that category in the admin panel.

    Are you trying to make the links appear in alphabetic/numerical order within the category’s box on the front page? If so, then you’ll need to alter ‘categories’ and replace with the order you want to links to appear in, i.e. ‘id’ or ‘name’.

    Are *all* of the categories appearing in the My Galleries box and you want to separate them out into their own? If so, then you’ll need to modify the ‘-1’ above to represent the category ID number you want displayed. In the example you posted, you’d want to change ‘-1’ to ‘2’. (Going out on a limb there as I *don’t* actually know the cat ID for the galleries category.)

    For more information on messing with the get_links tag, you can see the get_links Codex entry.

    Hope that helps.


    Thank you!

    I did want to put the links into their seperate catagories. I apologize if I did not make that clear!

    I changed the -1 to 2 and 3 respectively, and it did exactly what I wanted! THANKS!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Links and Categories’ is closed to new replies.