WordPress.org

Ready to get started?Download WordPress

Forums

Creating a Links Page (8 posts)

  1. djr3110
    Member
    Posted 6 years ago #

    Hi, I'm sure I've seen how you do this somewhere but I really can't find it, so sorry for those who think it's a dumb newbie question.
    What I want to do is display all my links that I have in my blogroll on one page without having to re-enter them manually.

    Isn't there a simple way to do this???

  2. whooami
    Member
    Posted 6 years ago #

    take a look at the default theme's links.php:

    <?php
    /*
    Template Name: Links
    */
    ?>
    <?php get_header(); ?>
    <div id="content" class="widecolumn">
    <h2>Links:</h2>
    <ul>
    <?php get_links_list(); ?>
    </ul>
    </div>
    <?php get_footer(); ?>

    that's pretty much it.

  3. Metzae
    Member
    Posted 5 years ago #

    Succinct answer...thank you.

    However, isn't there a "sexier" way to do this? Something that works with pretty links, for example? I'd like to have http://eric.metze.us/links/ to work instead of http://eric.metze.us/links.php

  4. Ivovic
    Member
    Posted 5 years ago #

    of course there is... that file is a page template, which means you can assign it to a wordpress "page" you create.

    go to write a page and you should see the template option.

  5. Metzae
    Member
    Posted 5 years ago #

    Yeah, I've done that once before but now I don't see the option. When I go to Write Page, the Advanced Options show the following sections...

    • Custom Fields
    • Comments & Pings
    • Password Protect This Page
    • Page Parent
    • Page Order
    • Page Author

    Nothing about page templates. I'm using 2.5 right now.

  6. Ivovic
    Member
    Posted 5 years ago #

    it could be because there aren't any in your theme folder.

    save that code as a file *including* the comment at the top, which is vital... and upload it to your theme folder, then go to write a page.

  7. Metzae
    Member
    Posted 5 years ago #

    Ahh...that's what I needed to know.

    You rock! Thanks for your help. :o)

  8. bwoosh
    Member
    Posted 5 years ago #

    thanks for the details, this worked great :)

Topic Closed

This topic has been closed to new replies.

About this Topic