Creating a links page in WordPress

Creating an links page is very easy in wordpress and displays all your links in one directory.

You use the same method as you would to create an archive page in wordpress.

The wordpress default theme already has a links template but if your theme does not then all you have to do is copy your page template to a file called links.php and upload it to your theme directory making sure that the file has

/*

Template Name: Links

*/

at the top of the template and the following code for the content :


<h2>Links:</h2>
<ul>
<?php get_links_list(); ?>
</ul>

Once you have a links template all you need to do is create a new page and change the page template to links. Thats it. You should now see a links page which shows all the links you have added to your site. You can see an example of this on our links page.

If you have any questions please let me know 🙂

kevin

  •  
  • 2
  •  
  •  
  •  

Disclosure: In full disclosure, it is safe to assume that the site owner is benefiting financially or otherwise from everything you click on, read, or look at while on my website. This is not to say that is the case with all content, as all publications on the site are original and written to provide value and references to our audience.

4 Comments

  1. Dynamic Magician July 17, 2007
  2. Netbois Consulting June 9, 2008
  3. Go Gadget Giveaway September 28, 2010
  4. Stan June 8, 2011