breadcrumb Tag's Archives
How to Integrate Breadcrumb Navigation without a plug-in
Posted by Glance World Admin in How To, Tips, Tutorials on July 17, 2009
There are plenty of WordPress extensions that generate breadcrumb navigation. But you can actually create custom breadcrumb navigation with only a handful of lines of code in the template, opening up greater control and, potentially, less overhead. This approach to breadcrumbs builds on the get_post_ancestors function.
To start with, here is a basic implementation of breadcrumbs that only deals with pages and includes a breadcrumb for “home” (the front page of theblog) at the beginning of the list. Depending on the design of a particular template, some checks may need to placed around this code. In this example, it will be assumed that this code will be placed in the header.php template file, that the crumbs should appear only on pages, and that it should not show up on the front page. The current page and front page link will also be assigned special CSS classes for styling purposes.
Sponsors
- Advertise here!
112 x 112
Want this space?
Click Here - Advertise here!
112 x 112
Want this space?
Click Here
Categories
Archives
Editor's Choice
Top 5 Stories
Tag Clouds
-
browser
browsers
chrome
CSS
CSS Techniques
Database Management
Development
firefox
firefox 3.6
gmail
Google
google chrome os
html5
internet browser
jQuery
microsoft
mozilla
Multiple Author WordPress Blog
Permalink Redirect
PHP
php 5.3.0
phpMyAdmin
php news
php programming
picasa
releases
SEO
Twitter
vulnerability
web development
What's New
windows
windows 7
Wordpress
wordpress 2.8
wordpress 2.8.x
wordpress beta
WordPress Code
WordPress Hacks
WordPress How-To
WordPress Plugins
WordPress Resources
Wordpress Security
Wordpress Tips
youtube






