• Resolved ndar

    (@ndar)


    Hi.

    I have used TablePress via shortcode multiple times on my site. In my test runs, my first tablepress table was being indexed (and still is). Unfortunately, the additional tablepress tables I have created do not seem to be included in the index, even though I’ve wiped the index and recreated it. Any ideas on what to try next?

    Thank you!

    The page I need help with: [log in to see the link]

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

    (@msaari)

    Can you please point me to a table that’s not working correctly? Have you checked the page with the Relevanssi debugger to check whether the table is indexed?

    As far as I can tell, there should be no general problems indexing TablePress table shortcodes.

    Thread Starter ndar

    (@ndar)

    Hi.

    Sure. Many of the tables aren’t being indexed, and I can’t find a rhyme/reason as to why. For instance, under “Directories” , the State Directory isn’t working correctly.

    Here is what I see on the debugger

    Thank you for your help!

    Plugin Author Mikko Saari

    (@msaari)

    Can you perhaps share a JSON export of that table so I can look at it? How is the table added to the page? Is it just the shortcode on the page and nothing else?

    Thread Starter ndar

    (@ndar)

    Sure.

    Here’s the JSON export.

    The table is added via shortcode (Screenshot of page in edit mode).

    Thank you!

    Plugin Author Mikko Saari

    (@msaari)

    Ah, I see you’re using TablePress extensions there. I added those extensions on my site, and yes, Relevanssi does not understand the [table_filter]?shortcode. It’ll work fine if I add your table to a post using the regular [table] shortcode.

    Adding this to your site and rebuilding the index should help:

    add_filter( 'relevanssi_post_content', function( $content ) {
        $content = str_replace( '[table_filter', '[table', $content );
        return $content;
    } );

    This little function will replace all [table_filter] shortcodes with [table] shortcodes when Relevanssi is indexing the posts. The filtering isn’t important when indexing in any way, as you want to index everything.

    Thread Starter ndar

    (@ndar)

    Sorry. Another question. Can I add this as a code snippet with that plugin? Or do I add it directly somewhere? When I tried using Code Snippets, it said fatal error. Where exactly do I put this chunk?

    Thank you!

    Plugin Author Mikko Saari

    (@msaari)

    Code Snippet should be fine. I was able to add this to a Code Snippet without errors, so check that it’s copied exactly as it’s here.

    Thread Starter ndar

    (@ndar)

    Great. Yep. Just a bad copy/paste job on my part. We’re in good shape now. Thank you so much!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘At least one TablePress (shortcode) isn’t being indexed while others are’ is closed to new replies.