Okay, I’ve worked on this a bit.
I think the confusion before was the fact I was trying to migrate from V4 to V5. It seems I’ve discovered the following, and please correct me if I am wrong:
– I see the V5 no longer needs acf/pre_save_post filter to insert a post. However, I was relying on this to add_query_arg a few variables. Specifically, the newly created post ID and the listing type which was being pulled with:
$listing_type = $_POST['bh_post_type']
If it’s a successful post, I want to simply add 4 query arguments, 2 of those being what I stated above. In V4, i used that filter to handle the post insert and return URL just as you had laid out for me earlier in this thread.
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!