WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Links and Categories (3 posts)

  1. queenmychl
    Member
    Posted 7 years ago #

    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">

  2. <h3><?php _e('My Galleries'); ?></h3></div>
    <*div class="boxbody">
    <*ul>
    <*?php get_links('-1', '
  3. ', '
  4. ', ' ', 0, 'category', 0); ?>
    <*/ul>
    <*/div>
    <*/li>
    <*/div>

  • wpdiva
    Member
    Posted 7 years ago #

    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.

  • queenmychl
    Member
    Posted 7 years ago #

    wpDiva,

    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!!!

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.