Old ID and new ID
-
Hi,
I’ve been using Contact Form 7 for quite some time. Initially, form IDs were numeric (e.g., 1234). However, I recently noticed that Contact Form 7 has switched to using hexadecimal strings as form IDs (e.g., af17b0c). This change has created an issue for us because we can no longer search for forms by ID in the database.
Previously, we used the following query to retrieve posts using form ID 1234:
SELECT * FROM wp_posts WHERE post_content LIKE '%[contact-form-7 id="1234"]%';
While some pages still display the old shortcode format <code class=””>[contact-form-7 id=”1234″], it continues to function even without updating to the new format <code class=””>[contact-form-7 id=”af17b0c”]. We’ve updated some websites with the new format, but we’ve observed that even when the form ID changes internally, the page with the old shortcode still works.
Could you please clarify how the shortcode with a mismatched ID remains linked to the correct form? Understanding this mechanism will allow us to adjust our database queries accordingly.
Thank you very much.
- You must be logged in to reply to this topic.