Forums

Link Catagory problem (12 posts)

  1. marginwalker
    Member
    Posted 7 years ago #

    Im starting to addlinks and catagories.

    The trouble Im having is that the links end up on blogroll even though Ive put them in a different catagory. The other problem is that the catagories are not showing up on the page.

    Any help? ;-) Im using the equix template

  2. marginwalker
    Member
    Posted 7 years ago #

    Anyone? ;-)

  3. moshu
    Member
    Posted 7 years ago #

    Check the sidebar.php file which template tag is used Template_Tags#Links_Manager_tags - and replace it with the one that does what you want.

  4. marginwalker
    Member
    Posted 7 years ago #

    Which is the best one?

    Ive tried one but it messes up the page!

  5. moshu
    Member
    Posted 7 years ago #

    There is no "best one". It all depends on the user's need.

  6. marginwalker
    Member
    Posted 7 years ago #

    Ummm, Well I want something that goes like:

    General Links
    Other Blogs I Read
    Music Links.

    Im not an expert with coding so any help would be great!

  7. marginwalker
    Member
    Posted 7 years ago #

    Well, Ive set up a blogroll account and used that for the blogging links. Now I want to create a seperate link list for other websites.

    What would be the code for that?

    Thanks for the help!

  8. marginwalker
    Member
    Posted 7 years ago #

    Anyone?

    I have set up catagories in the WP admin pages but all my links end up in the BlogRoll catagory.

    Can anyone offer some help>?!!

  9. katie1
    Member
    Posted 7 years ago #

    Are you inserting the appropriate code call for your link categories? I'm assuming your categories will be displayed in the sidebar...

    example:
    <h2>Blogroll</h2>

      <?php wp_get_linksbyname('blogroll'); ?>

    <h2>Other Blogs I read</h2>

      <?php wp_get_linksbyname('otherblogs'); ?>

    I'm also assuming that unless you actually write this code into your sidebar for each link category you've set up in your admin area, obviously changing the ('xxx') to reflect the link category name, then ALL links will automatically default to your blogroll because there isn't any other link category in your sidebar for the links to be displayed. Hope this makes sense.

    Just my innocent 2 cents worth - I could be wrong (about the defaulting links...)

  10. sacreddoily
    Member
    Posted 7 years ago #

    If you've tried all the samples in http://codex.wordpress.org/Template_Tags#Links_Manager_tags
    then I would check the h2 section in your css file and make sure all the correct info is in there - such as font, and color etc.
    such as

    [code]
    h2 {
    font-family: 'Arial';
    color: #000;
    font-size: 8pt;
    text-align: left;
    text-transform: uppercase;
    }[/code]

  11. natureday
    Member
    Posted 7 years ago #

    Do they have to be placed in a side bar?

  12. bluntpencil
    Member
    Posted 7 years ago #

    Katie1 posted most of the solution already. I just installed this theme yesterday, and had the same problem.

    Equix uses the get_links function, which is defaulted to -1 and therefore shows all links under the "Blogroll" heading.

    To change it, I opened up sidebar.php, scrolled down to the links section (which is clearly marked), copied the code within it and then pasted it directly beneath the original and edited the name "blogroll" to something else in my new code.

    Then, I found the "-1" integer in the original code, which is the default setting, and changed it to "1" in the "Blogroll" section. This mirrors the links category number in my dashboard.

    In the code that I'd copied and pasted, I changed the "-1" to "2", which is the dashboard number of my new category.

    Here's the code I ended up with:

    <li><!-- Links -->
    <h2><?php _e('Blogroll'); ?></h2>
    <ul>
    <?php get_links(1, '<li>', '</li>', '', TRUE, 'url', FALSE); ?>
    </ul>
    <!--Updated Link List starts here-->
    <h2><?php _e('Webroll'); ?></h2>
    <ul>
    <?php get_links(2, '<li>', '</li>', '', TRUE, 'url', FALSE); ?>
    </ul>
    <!--and ends here-->

    </li><!-- End of Links -->

    I guess you just keep going ad infinitum!

Topic Closed

This topic has been closed to new replies.

About this Topic