WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I add a breadcrumb trail to the top of every page of my site? I wait to to look like: "You are here: (page name)"

share|improve this question

Try a breadcrumbs plugin. Breadcrumb NavXT is a popular option I believe.

An alternative solution of is just printing the name of the current page. Here's what such a function might look like in its most basic form:

function wpse_87332_nav_identifier() {
    $page_name = get_the_title();
    echo "You are here: " . $page_name; 

Note that this will only work on single pages (posts, pages, media and custom post types etc.), and you'll have to add some logic to display titles for archive pages.

share|improve this answer
is there any other option apart from using plugin? – user27634 Feb 18 '13 at 7:25
I want something like this- You are here: Home>> Name of menu >> Name of submenu – user27634 Feb 18 '13 at 7:28
There is no built in breadcrumbs function in WordPress, but off course you can implement something yourself, but using a plugin is by far the simplest. I've updated my answer with an alternative solution. – Simon Feb 18 '13 at 7:36
In response to you second comment, if breadcrumbs is what you want, and you don't feel like spending the time developing your own breadcrumbs plugin, use any of the ones readily available. This functionality is not included in WordPress and there are no shortcuts. – Simon Feb 18 '13 at 7:38
thank you for your support, I am trying to use the function – user27634 Feb 18 '13 at 7:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.