• Resolved rayorlana

    (@rayorlana)


    Hi, I’m currently developing my website with a lot of tables in a multisite. I am using the table ids in an ‘a href’ to link to the tables. Earlier, all my table id are having the id such as tablepress-xx-no-3 . I assumed the -no-3 was because the blog id where I created the table is 3. So i referenced tablepress-xx-no-3 in my links. But then somehow all the -no-3 dissapeared from the tables. What is causing this. I already have hundreds of tables created with links in it and it would be time consuming to change them again.

    Thanks,
    Raymond

    • This topic was modified 7 years, 1 month ago by rayorlana.
    • This topic was modified 7 years, 1 month ago by rayorlana.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    That -no-3 part of the HTML ID of the table HTML code actually has a different source: As the HTML ID has to be unique on the page, TablePress adds -no-2, -no-3, etc. whenever data from the same table is shown on the page. This for example allows to add the same Shortcode to the page multiple times, but e.g. with different parameters and settings.

    So, in your case, as you got the -no-3 in the HTML IDs, you either have the Shortcode for the same table ID (not HTML ID!) on the page at least three times, or there’s something on your site that – in the background – renders the page (and thus parses the Shortcodes) but doesn’t show the resulting content. I have seen this for example from SEO plugins.

    Your best chance now probably is to export those tables with the links to CSV files and then use search/replace to remove the extra -no-3 part in a text editor.
    You could also use a plugin filter hook to change the ID back to that with the -no-3, but I wouldn’t really recommend that.

    Regards,
    Tobias

    Thread Starter rayorlana

    (@rayorlana)

    Thanks for the response Tobias!

    I’m still not sure what’s causing it but I decided to remove the -no-3 with Search/Replace Script.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yeah, it’s kind of hard to find out what caused this, as there are several plugins that can cause this, if they do things wrong.
    Good to hear that everything is working now!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Table ID suddenly changed itself’ is closed to new replies.