• Resolved Insomnia88

    (@insomnia88)


    Somehow the indexing process “stops” (keeps indexing for > 10 minutes without any changes) on my page(s) after a specific amount of indexes. Like when it hits 15 of 81 pages.
    The issues disappears when I deactivate the “expand shortcodes” option.
    I created this theme on my own including all shortcodes but I don’t know which shortcode is causing this error and how to debug it. The shortcodes itself are working fine in the frontend, so no error or something.
    Could be that there are some notices or warnings but that shouldn’t stop relevanssi from doing its work, or should it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Since you’ve already narrowed it to the shortcodes, that’s a good start! Generally, shortcode problems stem from a couple of common causes:

    a) Posts are fetched with WP_Query. Using WP_Query like that is a no-no, and replacing it with get_posts() solves the problem.

    b) Something changes the global $post. Avoiding that helps, but if that’s not possible, then make sure the global $post is restored afterwards.

    c) The shortcode has expectations about context and expects to always be in a Loop. Fixing it so that it can work outside of the Loop usually helps.

    Thread Starter Insomnia88

    (@insomnia88)

    Thanks for the reply. I was able to narrow it down and get rid of the index blocking stuff ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stuck on indexing (issue with shortcodes)’ is closed to new replies.