My Mautic version is: 4.4.8
My PHP version is: 8.0.28
My Database type and version is: 10.6.12-MariaDB-0ubuntu0.22.04.1
I’m not an expert in WordPress, so I recently created my website and set up Mautic. I successfully inserted a form on my website, and everything was working fine. However, after a few months, the form stopped working, and now it only displays the code on the website.
I’ve tried reinstalling all the plugins and themes and searching the internet for solutions, but I couldn’t find anything helpful.
I couldn’t find a solution for why inserting this code: “[mautic type=“form” id=“1”]” into the shortcode wasn’t working on the first page.
I created a new page and inserted the shortcode in the same way as I did on the first page, and it worked.
So I inspected both pages and noticed that the script was loading differently. What I did was simply copy the script from the page that was working and paste it into the shortcode block of the first page, and it worked.
Instead of using the code [mautic type=“form” id=“5”] as recommended by the WP Mautic plugin, I pasted this code: