Follow Us on Social Media
Devmont Digital Insights

To new businesses, give you the expertise, approaches, and techniques you should know to be a super hero.

BLOG - BLOG - BLOG - BLOG - BLOG - BLOG - BLOG - BLOG - BLOG

WordPress Breadcrumbs Shortcode: 1 Line, Any Theme

Nov 24, 2026
WordPress Breadcrumbs Shortcode: 1 Line, Any Theme
WordPress Breadcrumbs Shortcode: 1 Line, Any Theme

Put them near the top of the page, directly under the header and above the page title. That is where visitors expect to find them, and it keeps the trail separate from the content. Use the same position on every template so readers learn where to look.

Breadcrumbs fix that. They are the small trail near the top of a page (Home > Guides > This Post) that shows where a page sits and links to every level above it. This guide shows how to add one to any WordPress theme with a single shortcode, how it compares with the alternatives, and what to check so the trail is accurate.

Why breadcrumbs earn their space

A breadcrumb trail does three jobs. For readers, it answers “where am I?” without a click. For site structure, it adds a link from every page to its parent, which spreads internal links up the hierarchy instead of leaving deep pages isolated. And for search engines, a trail that matches your real structure makes the relationship between pages clearer. Google also documents a separate BreadcrumbList structured data format, which is something to know about but is not the same as the visible trail.

We built Essential Theme Helpers for exactly this kind of small, repeatable job. It is one of our free WordPress plugins, and the breadcrumb shortcode is the part most sites will want first. First, how the options compare.

Four ways to add breadcrumbs

Approach Effort Control Best for
Theme setting Lowest Whatever the theme offers Themes that already include breadcrumbs
SEO plugin (Yoast SEO, Rank Math) Low Trail plus structured data, set in the SEO plugin SEO plugin (Yoast SEO, Rank Math) Low Trail plus structured data, set in the SEO plugin Sites already running one of them
Dedicated breadcrumb plugin (Breadcrumb NavXT) Medium Very detailed trail rules Complex taxonomies and custom post types
Essential Theme Helpers shortcode Low One shortcode, placed anywhere shortcodes or template code work Custom themes, page builders and sites without an SEO plugin

If you already run Yoast SEO or Rank Math, use the breadcrumbs they provide. They are built into tools you already maintain, and adding a second trail creates duplicates. Choose the shortcode when you have no SEO plugin, when you build custom themes for clients, or when you want to place the trail in a specific spot in a template without editing a plugin’s settings.

Step 1: Install and activate the plugin

In your WordPress admin, go to Plugins, then Add New, search for Essential Theme Helpers, and click Install and then Activate. You can also get it from its WordPress.org page. It needs WordPress 6.0 or higher and PHP 7.4 or higher.

Step 2: Add the breadcrumb shortcode

The shortcode is:

[essethhe_breadcrumbs]

Paste it into any post, page, or widget area that accepts shortcodes. For a site-wide trail, you want it in the template, not in individual posts. In a classic theme, add this to header.php under your header, or to single.php and page.php above the title:

<?php echo do_shortcode( '[essethhe_breadcrumbs]' ); ?>

In a block theme, open the Site Editor, edit the template you want (for example Single Post), and add a Shortcode block above the post title. Edit the Page template the same way.

Place the trail above the page title, directly under the header. It is the position readers expect, and it keeps the trail out of the way of the content.

Step 3: Check the trail on real pages

Open five kinds of pages and read the trail on each one. Do not trust that it is correct because it appears.

Page type What to check
A top-level page The trail should show Home and the page, nothing extra
A child page Every parent page should appear, in order, and each should link
A blog post A blog post The trail should reflect your category structure
A post in two categories Check which category the trail picks, and whether that is the one you want
A category or archive page Confirm the trail ends on the archive, not a stray post

The most common mistake is a post filed under several categories. The trail can only show one path, so assign a primary category to every post that matters. A trail that shows an odd parent confuses readers more than no trail at all.

Style it to match your theme

The listing says the output carries CSS classes, so you can override the styling from your theme’s stylesheet. Inspect a rendered page in your browser, find the wrapper class around the trail, and target it:

.your-breadcrumb-wrapper {
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

.your-breadcrumb-wrapper a {
    color: #f47920;
    text-decoration: none;
}

On a phone, a long trail wraps onto several lines and pushes the title down. Keep page and category names short, and test it on a real device. Our mobile interface design guide covers tap targets and layouts that hold up on small screens.

What else is in the plugin

Essential Theme Helpers is a small toolkit, not a single-purpose breadcrumb plugin. The listing documents three more shortcodes: [essethhe_related_posts count="3"] for related posts by category, [essethhe_author_box] for an author bio with name, avatar and description, and [essethhe_post_meta] for the author, date and categories. Its settings page, under the Essential Theme Helpers menu, is modular, so you can turn pieces on and off. If you build the same components into every client theme, this removes a lot of repeat code.

Troubleshooting

What you see Likely cause Fix
The shortcode prints as plain text The plugin is not active, the name is misspelled, or the code sits in a template without do_shortcode() Activate the plugin, check the spelling, and wrap template use in do_shortcode()
Two trails on the page Your theme or SEO plugin already outputs one Remove one. Keep the one your SEO plugin controls
The wrong parent in the trail A post has several categories Set a primary category, or remove the extra ones
The trail breaks after a redesign Page parents or URLs changed Re-check parents, and follow our site migration checklist before changing structure

Keep it maintainable

Write down where the shortcode lives: which template files, which theme, which pages. A trail added in a template is invisible to whoever edits content later, and it disappears if someone changes the theme. If you want help building reusable components like this into a custom theme, that is part of our WordPress development work.

Frequently Asked Questions

Write a small function that walks the current page's parents or category and prints the links, then call it from your theme template. It works and gives you full control, but you maintain the code and test it on every page type. A shortcode plugin is faster if you do not want custom code.

No. Both include breadcrumb features, so turn those on instead of adding a second trail. A separate shortcode makes sense only when you do not run an SEO plugin, or when you need to place a trail in a template or page builder layout those tools do not reach.

Put them near the top of the page, directly under the header and above the page title. That is where visitors expect to find them, and it keeps the trail separate from the content. Use the same position on every template so readers learn where to look.
Maria
About the Author

Maria

Content Manager at Devmont Digital

Maria is Content Manager at Devmont Digital, writing practical guides on WordPress, Shopify and Laravel for founders and marketing teams. The Devmont Digital team builds websites, stores, and web apps for clients across the US, UK, and Europe. Specialising in WordPress, Shopify, Laravel, and MERN, the team publishes plugins on WordPress.org and apps on the Shopify App Store, and has been recognised by Clutch as a top developer.


Recent Article

Nov 17, 2026

Your Laravel app works. Nobody wants to touch it. Then a host drops an old PHP version, a security scanner flags a package, or a new developer refuses to work on a version that stopped getting patches years ago. The longer the upgrade waits, the more versions it has to cross, and every version adds its own breaking changes.

Read more
Nov 10, 2026

A reader opens your 2,000-word guide looking for one answer. They scroll, lose their place, scroll back up, and leave. Long posts only work when readers can jump to the part they came for, and WordPress does not ship a table of contents that does that. This guide shows three ways to add a sticky […]

Read more
Nov 3, 2026

You hand a client a finished website. The design is theirs, the copy is theirs, and then they open wp-login.php for the first time and see the WordPress logo. Click it and it opens wordpress.org. To a client who just paid for a custom brand, that looks like unfinished work, and it is the page their whole team sees every day.

Read more