Bread Crumb Trail
Ok, here it is, Bread Crumb Trail. Unlike Bread Crumb Trail Light this plugin is PHAT. Ok what I mean is this is feature packed and should work fine in any situation that I have thought of.
Instructions to come…
Q&A
- What?
- I’ll answer your questions here.
- Permalinks
- For viewing archives with BCT support you must use the uri rewriting permalinks function, this is actually a function of apache and not WP. WP just generates the htaccess file.
- Not showing ‘home’ when on the homepage.
- You need to set showhome to FALSE. Showhome is the second variable when calling the function, so you must also set root. the result should look something like;
<?php jp_bct('/',FALSE); ?>. Of you may create a new file named ‘jp-bct.ini’ and locate it as such ‘wp-content/jp-bct/jp-bct.ini’. Then add the line showhome = FALSE. - Some of the links in your bct are broken.
- Make sure your permalink structure works, you should be able to visit for example http://jp.jixor.com/archives/category/ and it should work, just displaying posts from all categories. This is the default behaviors, however this may be a relatively recent addition, if you have an old install you may need to update your permalinks rewrite rules, see the permalinks section, it generates the .htaccess file for you.
Current version is 1.1 For the most up to date version see http://dev.wp-plugins.org/file/jp-bread-crumb-trail/trunk/jp-bct.php
Note You currently require at least PHP version 4.3.0. I could resolve this dependancy but seriously you should upgrade to at least 4.3.0.
Next version I’ll add an admin interface for setting options, this will however be optional. If you don’t use it the code will be a little more efficient, but not by much. I may also look into ways of including your bct using hooks.
Commenting
Please leave only general comments on this page. If you want to comment on bugs and such comment on the article for the particular release you’re concerned with.
You can leave a response, or trackback from your own site.
June 12th, 2005 at 8:25 am
[...] ; Hybrid cont. Breadcrumb plugin I’ve modified a version of jixor’s bread crumb trail plugin to work with pretty links, [...]
June 27th, 2005 at 4:52 am
Installed the plugin today !
I really do like it. Now i hope my visitors do like it aswell. You can see it in action at http://www.robberthamburg.nl
Best regards,
Robbert (from .NL)
June 27th, 2005 at 4:53 am
[...]
Installed my breadcrumb navigation today
Installed a breadcrumb plugin today ! It seems to work quite well, and makes navigation easier when browsing t [...]
June 29th, 2005 at 1:36 pm
Fixed the attachment for 1.1b
August 8th, 2005 at 6:13 am
hi jixoe,
thanks for your great work. unfortunately, i can’t seem to get bct to work. i’ve added this and then i keep getting an error message:
Fatal error: Call to undefined function: html_entity_decode() in /home/virtual/site56/fst/var/www/html/lab/wp-content/plugins/jp-bct.php on line 97
i would freakn love to get this to work. any help would be greatly appreciated. i am using wp 1.5.1.3. thank you.
August 20th, 2005 at 12:58 am
Hi,
What do you add to the template file? I’ve added and I’m getting the following error:
Fatal error: Call to undefined function: jp_bctl() in /home/.sites/83/site204/web/wp/wp-content/themes/contexts/design.php on line 28
Many thanks,
Lee
September 6th, 2005 at 3:56 pm
You’re browsing: Home / Category 1/ Category 2 / Entry
because of my blog layout, my permalinks are /%category%/%postname%/
however, when you click on the link “Category 2″, the output url of your plugin is simple http://blog.com/Category-1/Category-2/
however, this causes problems, as such a url is simply looking for an entry called Category-2
A better solution would be for your plugin to out http://blog.com/category/Category-1/Category-2
That should make the plugin more compliant with different situations
September 25th, 2005 at 1:17 pm
TedFox, I sent you an email. Some issues raised there I’ll discuss on this site some time.
October 12th, 2005 at 9:26 pm
This is a great plugin, plug and play, very nice thank you !
October 17th, 2005 at 11:36 pm
My Wordpress site is mainly “pages” of static content with much fewer “posts” in categories. In fact, the site has a hierarchy of pages to three levels. Would your plugin work for me?
Thanks
October 18th, 2005 at 7:06 am
[...] Breadcrumbs-Plugin Ich (flo) habe eben noch das Breadcrumb-Plugin installiert, aktiviert und in dem aktuellen Theme (WP-Standard auf deutsch) eing [...]
November 19th, 2005 at 2:35 pm
jixor, I notice one problem.
When you have more than one page e.g. in archives, it is displayed as /page/1/ /page/2 by wordpress
That is good but /page/ doesn’t work and leads to a 404.
However, this is displayed in the path by your plugin causing searchbots and users on visiting that page.
I’ve added few extra rewrite rules to ensure /page/ goes to /page/1/ but I’m stuck because for /archives/categories/category-name/page/ doesn’t work.
November 19th, 2005 at 2:57 pm
Further from the post above.
I made the following change to your plugin file.
I added this:
$uri = preg_replace('/\/page/','',$uri);It removes the page before it is exploded :)
Also, I note that the URI in your plugin file points to a 404 on your site.
November 22nd, 2005 at 10:25 pm
[...] gierhilfe vor allem in barrierefreien Projekten. Für Wordpress gibt es dafür ein Plugin. Voraussetzung für diese Funktion ist die Konfiguration von Permalinks (Verweis auf Su [...]
June 20th, 2007 at 8:50 pm
[...] Bread Crumb Trail. Dar vienas šios grupės pluginas. Ką manote apie šiuos pl [...]
October 21st, 2008 at 4:01 am
Great work, thanks….
Top work…
October 27th, 2008 at 12:08 am
[...] Adsense. Bunny’s Technorati Tags - A simple and easy interface for tagging in each blog post. Bread Crumb Trail Generator - A little tricky to configure but very useful once you do. Especially nice when used on a static [...]
October 29th, 2008 at 12:36 am
yo…
wonderful…
February 28th, 2009 at 3:55 pm
[...] Bread Crumb Trail (in archives.php, archive.php, category.php, links.php, page.php, pages.php, single.php) [...]
May 9th, 2009 at 4:40 am
[...] Bread Crumb Trail Generator - A little tricky to configure but very useful once you do. Especially nice when used on a static website. [...]