• Hello, I just ported my site over to WordPress and, so far, I’m loving it. I have a question, however, about links. Is it possible to have one page that pulls in all your links? I’d like to limit the number of links that show from each category in the side bar and then have a link to “more” afterwards which would take you to an archive page that lists out all the links.

Viewing 6 replies - 1 through 6 (of 6 total)
  • There are Template Tags that will help you get specific links, like categories, Pages, and such. There are also various plugins that will help you get lists of related posts and most recent posts. Check the http://www.wp-plugins.net or http://www.wp-plugins.org for those.

    Thread Starter miri

    (@miri)

    Those are getting links from posts, though, right? I meant straight links added via the Links Managment tool. I think I can call get_links(); to put all links on a page, but how do I create a page like this that WP understands and knows how to handle?

    First you will have to create a new page template. In this case – for links – you can start from the index.php and do this:
    1. put on the top this
    <?php
    /*
    Template Name: Links
    */
    ?>

    2. Delete everuthing you don’t need, including The Loop… possibly leave only the calls for header, sidebar and footer.
    3. Put the get_links(); call where you want the list to start
    4. Save it.

    Now go to Write Page section in admin panel, and for a new page select the “Links” template you just created from the drop-down menu. Do not (!) write anything in the page. Click create new page.

    Go to the Manage pages: write down the page ID.

    Create a link anywhere on your site to the page [as http://www.yoursite.com/index.php?page_id=X%5D

    You’re done 🙂

    Thread Starter miri

    (@miri)

    Excellent! Thank you.

    Something is wrong here. I’ve followed these instructions until I get to the create new page part there is no drop down menu where I can choose the Links template.

    What am I missing? Can anyone provide a little more guidance for me.

    I posted the links.php in the template folder. Is this correct? My install does say WordPress 1.5. So I’m at a loss as to what to do now.

    Is the template (=links.php) in the theme folder that is active? If it is in a non-active theme – the dropdown menu doesn’t show up.
    (Please, notice the proper usage of the words template and theme.)

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