Good Navigation Links In WordPress

123. Good Navigation Links in WordPress.

When you have a clean navigation menu in the sidebar and the footer it helps people to move around your site, as well as find the posts and articles you want them to find. There is a variety of methods for user friendly site navigation on your WordPress site.

Helping users to use your site means putting things where they can easily find them. Following the newsletter formats from the days of print, most website users are used to look for intra-site links on the sides and bottom of a web page. As a designer, you can put them anywhere you want.

In the WordPress Themes that come with your WordPress installation, they all use a sidebar to hold most of the site’s navigation links. Other Themes can use navigational aids in the header and footer.

While these navigation links may be displayed in any template file,the navigation links include:

The template tags associated with generating this list of navigation links can be found in the default WordPress Themes’s sidebar inside of a nested list.

Pages are available to help the administrator create individual Pages outside of the WordPress Loop such as Contact Us, About Us, and What’s New. The template tag used to display the list of individual Pages is wp_list_pages().

There are many ways of customizing the wp_list_pages() tag to make it more useful to your users. A long list of Pages and sub-Pages may go on for quite a while, so you might want to feature only the most important Pages in your sidebar.

To exclude some Pages from your list, you may set the parameters for exclude. In the following example Pages with the Page-ID numbers of 17 and 38 are excluded .

<ul> <?php wp_list_pages(‘exclude=17,38’ ); ?> </ul>

The best template tag for creating a category list in your navigation menu is wp_list_categories().

The default usage of the category list tag is:

<?php wp_list_categories(); ?>

Archive

Like the categories template tag, there is an Archives date-based Template Tag, that’s called wp_get_archives(). The tag lets you display links to archives by year, day, week, day, or individual posts. You may limit the number of actual links to show in your Archives template tags.

The default usage of wp_get_archives will show a link for each month of posts:

<?php wp_get_archives(); ?>

The Links feature of WordPress, managed via Administration > Links, lets you to display of external links, such as a blogroll, a user would like to feature on his or her blog. They are generated by the template tag, wp_list_bookmarks().

The Admin or Meta list of links in the WordPress sidebar are the links that are used by the Administrator, if logged in, to access the administration panels of the site. They may also feature RSS Feeds and other information related to the administration or use of the site.

Here are some tags for more information on which ones you might want on your site to assist yourself and other registered users:

  • wp_register() – Registering on your site for comments and other administrative purposes
  • wp_loginout() – Logging in and out of your site’s administration panel with a password
  • bloginfo() – Various parameters available for setting the RSS/Atomz/RDF feeds for the site and comments
  • Template Tags – For more information on various template tags to use on your site

Hope this article helped you, guys!

Share this!

Post Author: Staff

Leave a Reply

Your email address will not be published. Required fields are marked *