Home › Forums › Front-end Issues › Repeater field – Add button 404 error (frontend only)
i have a problem with the repeater +add button (only in the frontend).
I use the normal acf-function
acf_form( .... );
Any ideas what I’m doing wrong?
Could you please share the URL where this issue occurs? You can reply this thread with Private visibility so no one else can see it.
I’m afraid I couldn’t see the repeater field on the page, even after I logged in. Could you please check it out?
The add button should send “wp-admin/admin-ajax.php” POST request to the server instead of the current URL. Maybe there’s something in your site that prevents it. Could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.
thanks for the fast reply!
i disabled all plugins -> same problem
i changed the theme to twentyfifteen-> works
i re-activated all plugins -> works
so the problem is my custom-theme … but i have no idea where to start :/
I’m afraid it can be anything in your theme.
Could you please try to use acf_form() without any parameter?
It’s also possible that there’s a JS script that causes this behavior. Could you please disable the JS scripts loaded by your theme?
Could you please try to use acf_form() without any parameter?/blockquote>
The same parameter works with the other theme, so this is not the problem.
Could you please disable the JS scripts loaded by your theme?
It must be something in my functions.php.
I disabled now this ajax request, i think i don’t need it because i used my own save functions.
Thank you very much for the fast help.
You must be logged in to reply to this topic.
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.