How to Find Where a Shortcode Is Used in WordPress

How to Find Where a Shortcode Is Used in WordPress

You deactivate an old slider or form plugin, and weeks later a customer emails a screenshot: your page now shows raw text such as [old_slider id="3"] where the slider used to be. Shortcodes outlive the plugins that created them, and WordPress gives you no list of where each one is used. This guide shows you how to find where a shortcode is used in WordPress, so you can fix broken ones before visitors see them and safely remove plugins you no longer need.

Why Broken Shortcodes Happen

A shortcode is a placeholder in square brackets that a plugin or theme replaces with real content when the page loads. When that plugin is deactivated or the theme changes, nothing replaces the placeholder, so the raw text appears on the page.

Common causes:

  • Removing a plugin for sliders, forms, galleries, tables or buttons.
  • Switching themes that came with their own shortcodes.
  • Migrating content from another site with different plugins.
  • Page builder changes that leave old shortcodes in text blocks.

Why Finding Shortcodes Matters

  • Trust: raw code on a page looks broken and unprofessional.
  • SEO: search engines see the bracketed text as page content.
  • Safe cleanup: you can only remove an old plugin safely once you know where its shortcodes are used.

Method 1: Scan With a Plugin

Shortcode Finder & Audit from Simpli Plugin is a free diagnostic plugin that scans your content for shortcodes and shows where each one is used, so you can spot orphaned or broken tags left behind by theme changes, deactivated plugins and migrations.

  1. Download the plugin ZIP from its product page.
  2. Go to Plugins → Add New Plugin → Upload Plugin.
  3. Upload the file, click Install Now, then Activate Plugin.
  4. Run a scan and review the list of shortcodes and the pages that use them.

Start with any shortcode that belongs to a plugin you no longer use. Those are the ones showing raw text right now.

Method 2: Search With WP-CLI

If you have SSH access, a database query finds every published post or page containing a shortcode. Replace old_slider with your shortcode and wp_ with your table prefix if it’s different:

wp db query "SELECT ID, post_title, post_type FROM wp_posts WHERE post_content LIKE '%[old_slider%' AND post_status = 'publish'"

This searches post content only. Shortcodes can also live in widgets, theme options and page builder data, which a plugin scan is more likely to catch.

Method 3: Search in the Dashboard

For a quick check, type the shortcode name into the search box on Posts or Pages. It searches titles and content, so it finds many cases, but not widgets, menus or builder data.

Cleaning up a large site after a redesign or migration? Simpli Plugin’s team builds custom audit and cleanup tools for WordPress content.

Talk to Our Developers →

Where Shortcodes Hide

Location Found by dashboard search? Found by database query?
Post and page content Yes Yes
Custom post types On their own screens Yes
Widgets No Only by searching the options table
Page builder layouts Sometimes Only by searching post meta
Theme settings No Only by searching the options table

How to Fix Broken Shortcodes

  1. Replace it. Swap the old shortcode for a block or the new plugin’s equivalent.
  2. Remove it. If the content is no longer needed, delete the shortcode.
  3. Reactivate temporarily. If many pages depend on it, reactivate the plugin until each page is updated.
  4. Re-scan. Run the scan again to confirm nothing is left.

Frequently Asked Questions

Why does my page show text in square brackets?

The shortcode’s plugin or theme is no longer active, so WordPress can’t replace it with content.

Can I remove a plugin safely if its shortcodes are in use?

Only after replacing or removing every shortcode it provides. Scan first.

Do broken shortcodes affect SEO?

They add meaningless text to your page and make it look broken to visitors, so they’re worth fixing promptly.

How often should I scan for shortcodes?

Before removing any plugin, after a theme change or migration, and every few months on larger sites.

Find Problems Before Visitors Do

Orphaned shortcodes are easy to miss and embarrassing when found. Scan your content, fix or remove broken tags and only then retire the old plugin.

Download Shortcode Finder & Audit for free, and browse the full Simpli Plugin library. If you need a full content audit, our developers can help.

Request a Custom Plugin →