djr3110
Member
Posted 4 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???
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.
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
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.
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.
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.
Ahh...that's what I needed to know.
You rock! Thanks for your help. :o)
thanks for the details, this worked great :)