How to Show Breadcrumbs in a WordPress Blog
Breadcrumbs are miniature site menus that appear on website pages. They contain a trail, or "breadcrumb," to the current page. For example, a post called "White House Report" in a "Politics" category would appear in a breadcrumb as:
Home > Politics > White House Report
WordPress doesn't support breadcrumbs by default, but you can add them using a plugin from the WordPress repository.
Instructions
-
Yoast Breadcrumbs
-
1
Log in to your WordPress administration panel and expand "Plugins" on the sidebar. Click on "Add New."
-
2
Search for "Yoast Breadcrumbs." Click on "Install Now" next to the plugin, and then click "Activate Plugin."
-
-
3
Click on "Breadcrumbs" beneath the "Settings" header. Choose how you want the breadcrumbs to appear. For example, you can choose whether to show the page title in bold. You can also choose whether to display the category.
-
4
Click on "Try to Add Automatically," and then click "Save." The breadcrumbs are added automatically if you are using a theme framework like Thesis, Thematic or Hybrid. Otherwise, you'll have to manually add the breadcrumb code to the template.
-
5
Open the "Editor" menu under appearance, and then open the "Single Post" template. Paste this breadcrumb code where you want the breadcrumbs to appear:
<?php if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<p id="breadcrumbs">','</p>');
} ?>
WordPress Breadcrumbs
-
6
Sign in to WordPress. Click on "Plugins" > "Add New." Search for "WordPress Breadcrumbs."
-
7
Click on "Install" > "Activate."
-
8
Click on "Editor" under "Appearance." Open the "Single.php" file. Paste this snippet where you want the post breadcrumbs to appear:
<?php if(function_exists('breadcrumbs')) { breadcrumbs(); } else { bloginfo('name'); echo '(breadcrumbs are unavailable)'; } ?>
-
9
Click on "Update File."
Breadcrumb NavXT
-
10
Sign in to WordPress. Click on "Add New" beneath "Plugins." Search for "Breadcrumb NavXT." Click on "Install Now."
-
11
Click on "Activate" to activate the plugin.
-
12
Click on "Editor" under the "Appearance" tab, and then open "Single.php."
-
13
Paste this code in the template where you want the site breadcrumbs to appear:
<div class="breadcrumbs">
<?php
if(function_exists('bcn_display'))
{
bcn_display();
}
?>
</div>
-
1