Saturday, 12 November 2011

How To 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

ADVERTISEMENT

Related Posts Plugin for WordPress, Blogger...