Home › Forums › ACF PRO › Can't Save Post if I Add a URL to a Text/URL Field??? › Reply To: Can't Save Post if I Add a URL to a Text/URL Field???
Hi @BlueOrchard
Thanks for the code.
The errors suggest that variable do not exist. Looking at your code, there are definitely situations where the variable $specat
does not exist.
For example, what if the $specat
value is ‘1’ instead of ‘2’?
if($specat == 2){$specicat = 1193;}
Please fix all PHP errors within your theme, and the ACF form should redirect as it should.
@Made Responsively Can you please turn on DEBUG_MODE too? Do you get any PHP errors which saving the options page?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.