Hi! I’ve been using your plugin for about two weeks, and absolutely love it.
I’m using a third party plugin (WPMU Dev : Directory).
It uses CustomPress (which is shit compared to ACF.
It accepts the data on ‘Updated’ posts, but not ‘New’ posts.
I know there’s a function to filter new data into it, but I can’t get it to work.
Also, the directory plugin generates the post_id and whatnot, so I’m not actually using ACF to “publish” the post.
If you need any more information or access to the site let me know.
Don’t want to flood your support with the directory code.
Thank you very much.
Hello! Thanks for the speedy reply.
I am only using 2 plugins. The directory and ACF.
I’ve setup multiple custom fields for the directory post type. The directory works entirely in the frontend. I’ve properly coded all the form inputs into the frontend but they don’t work when publishing a new post, only when updating a post.
The CustomPress is a builtin core function of the directory, and wouldn’t interfere with ACF.
What’s missing in my whole process is getting the fields to $_POST.
i can’t see where the function update_listing is being called from.
Your code is extremely complex and I urge you to debug the code line by line. All programming issues can usually be traced back to 1 line from where it all snowballs.
Just go through your code with a simple debug script like so:
print_r( $vairable );
And make sure that each line or variable is holding the correct data. The die command will stop the page from continuing so that you can test that the code actually gets to that point.
Hope that helps.
The code is complex, because it’s from another plugin.
I don’t think there’s something that is obstructing it from being posted, I think there is something missing that is keeping it from being posted.
Does it look like all the conditions are there for the problem not to be that something is missing?
This has always been a problem. The code is too complex for me to alter it and guarantee it works still.
I’m off to debug now.
There is simply too much code for me too look over and understand in the context of this free support forum service.
Let me know what you find in your debugging.
If the code is from another plugin, perhaps you can contact the developer of that plugin? They should know why there code does / doesn’t work.
So… since I will never get this figured out, my “bugs” are now features.
Since the directory is going to be for multiple types of companies, I’ll let them do the title, and categorize the directory (built into that plugin), but then take them to an already posted version with the ACF stuff I need.
Thanks for the help, man. Great plugin that is limited only by my experience.
Gonna be swooping a repeater field and the gallery very shortly.
The topic ‘New Posts don't accept data, updated posts do.’ is closed to new replies.
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!