Title: Zero in on problem shortcode
Last modified: April 28, 2024

---

# Zero in on problem shortcode

 *  [Gregg](https://wordpress.org/support/users/lorax/)
 * (@lorax)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/)
 * Hi Mikko,
 * I’m having an issue with building the index on a site. It hangs early on whenever
   I enable expand shortcodes. What’s best practice to locate the page with the 
   problem shortcode on it?
 * If it matters, I’m using theme.co’s Pro theme on this site.
    -  This topic was modified 2 years, 1 month ago by [Gregg](https://wordpress.org/support/users/lorax/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fzero-in-on-problem-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17719546)
 * The Relevanssi indexing page shows the lowest post ID indexed. The problem shortcode
   appears in the next post in descending order of post ID. That’s one approach.
 * In general, shortcodes that query posts tend to cause problems.
 *  Thread Starter [Gregg](https://wordpress.org/support/users/lorax/)
 * (@lorax)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17722187)
 * Hi Mikko, thanks for the reply. So when I see this in the index progress box:
 * Indexed 10 posts (total 10), processed 10 / 1940.
   Indexed 105 posts (total 115),
   processed 115 / 1940.
 * The problem post ID might be 116?
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17722328)
 * No, Relevanssi starts from the latest posts and goes through the post IDs in 
   descending order. The “State of the index” shows the lowest post ID indexed.
 *  Thread Starter [Gregg](https://wordpress.org/support/users/lorax/)
 * (@lorax)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17724919)
 * Ah, got it. Thank you Mikko!
    -  This reply was modified 2 years, 1 month ago by [Gregg](https://wordpress.org/support/users/lorax/).
 *  Thread Starter [Gregg](https://wordpress.org/support/users/lorax/)
 * (@lorax)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17734258)
 * Hey Mikko, slight oddity. The last post indexed show 72464. The next post to 
   be indexed – presumably the problem post would be 72463. But it’s an image. There
   are no short codes. Why might it hang up on this?
    -  This reply was modified 2 years, 1 month ago by [Gregg](https://wordpress.org/support/users/lorax/).
 *  Thread Starter [Gregg](https://wordpress.org/support/users/lorax/)
 * (@lorax)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17734266)
 * We don’t need the images indexed so I added the code from your website: [https://www.relevanssi.com/knowledge-base/controlling-attachment-types-index/](https://www.relevanssi.com/knowledge-base/controlling-attachment-types-index/)
 * But it still stops in the same spot.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17734460)
 * If Relevanssi doesn’t index images, then the next post in line is not that image.
   So go through the post IDs in descending order until you find an indexable post.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Zero in on problem shortcode’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 7 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/zero-in-on-problem-shortcode/#post-17734460)
 * Status: not resolved