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.
18 Comments
RSS feed for comments on this post. TrackBack URL
Sorry, the comment form is closed at this time.
[...] ; Hybrid cont. Breadcrumb plugin I’ve modified a version of jixor’s bread crumb trail plugin to work with pretty links, [...]
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)
[...]
Installed my breadcrumb navigation today
Installed a breadcrumb plugin today ! It seems to work quite well, and makes navigation easier when browsing t [...]
Fixed the attachment for 1.1b
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.
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
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
TedFox, I sent you an email. Some issues raised there I’ll discuss on this site some time.
This is a great plugin, plug and play, very nice thank you !
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
[...] Breadcrumbs-Plugin Ich (flo) habe eben noch das Breadcrumb-Plugin installiert, aktiviert und in dem aktuellen Theme (WP-Standard auf deutsch) eing [...]
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.
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.
[...] 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 [...]
[...] Bread Crumb Trail. Dar vienas šios grupės pluginas. Ką manote apie šiuos pl [...]
Great work, thanks….
Top work…
[...] 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 [...]
yo…
wonderful…