John Huebner
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF Post-2-Post] Deleting and Changing Post TitlesI don’t know why you are having the second issue, but it’s not how it should be working. The only think that comes to mind is a caching issue. If you are running any type of a caching plugin the update of the custom field will not cause the cache for the post on the other side of the relationship to be cleared. The post is not updated, only the field in question. Saving the post will generally clear the cache for that page.
Forum: Plugins
In reply to: [ACF Post-2-Post] Deleting and Changing Post TitlesThis is normal behavior. There is not check done when a post is deleted to remove any relationship from other fields.
This is the same way that ACF itself works. If you were not using a bidirectional relationship, if you edited post A to create a relationship with post B and then delete post B the relationship would still exist in post A. However, when you get a field ACF will not return posts that have been deleted, or that are in the trash.
Also, when you update the other post ACF should see that the post no longer exists and remove it from the relationship, though I’m not sure if this is the case when in the trash.
If you are getting the value without formatting it
get_field('relationship', false, false)you will get the deleted post ID, under this condition it would be up to you to check to make sure each post exists.Forum: Plugins
In reply to: [ACF Options Page Admin] Header and footer disable bugSorry about the additional bugs added while fixing bugs. Hopefully the new release has everything worked out. Please let me know.
Forum: Plugins
In reply to: [ACF Options Page Admin] Header and footer disable bugI believe I have it fixed. Please test the update and let me know if you still have issues.
Forum: Plugins
In reply to: [ACF Options Page Admin] Header and footer disable bugIt does not appear that this feature works with the newest version of ACF and I may need to remove it.
Forum: Plugins
In reply to: [ACF Post-2-Post] Does this work well with Events Manager posts & fields?If you can add ACF fields to the post type used by events manager and those fields work, then this plugin can be used. But I can’t answer the question or how you would incorporate the fields into the events manager. That would be a question you’d need to ask them. I personally do not have any experience with that plugin.
Forum: Plugins
In reply to: [ACF Post-2-Post] Many to manyI’ve given it some thought and I haven’t been able to think of a way to do what you want, at least not without ending up in an infinite loop. I would suggest asking your question on the ACF forum and maybe one of the other users there will be able to help you. https://support.advancedcustomfields.com/
Forum: Plugins
In reply to: [ACF Post-2-Post] Many to manyWhat you want cannot be done with this plugin and is outside of the intended scope of this plugin.
This plugin will only create the 2 way relationship between the current post and the posts you add in the relationship field. It will not create 2nd level relationships. These would need to be created between those posts by editing posts 2, 3 and/or 4 etc.
Forum: Plugins
In reply to: [ACF Medium Editor Field] Compatibility IssuesI just published a new version, let me know if it fixes the issue for you.
Forum: Plugins
In reply to: [ACF Medium Editor Field] Compatibility IssuesThis is because of z-index issue. The other plugin is using a z-index of 10000+. I’ll will have to make mine higher.
Forum: Plugins
In reply to: [ShareThis Share Buttons] Errors when using Duplicate PostIf this plugin is active when duplicating a post in the admin the error appears and causes the duplication to fail.
Forum: Plugins
In reply to: [ACF User Role Field Setting] Editor role can not see ACF menuThis plugin does not control who is allowed to edit ACF field groups. It only controls who can see/update specific fields when editing a post or other location where the fields are included.
Who can see or edit field groups is determined by an acf setting. https://www.advancedcustomfields.com/resources/acf-settings/
Forum: Plugins
In reply to: [ACF Post-2-Post] Not working with ACF 5.7.11Update ACF to the latest version. There were some bugs in 5.7.11.
The reason that I use get field with those arguments is that you only want to get the field for the post where the relationship needs to be updated. Without it, say that you have the same field name on more than 2 post types, you have no idea what post will be updated, it would be whatever field is located first.
Forum: Plugins
In reply to: [ACF Post-2-Post] my_overwrite_settings function example not workingI just tested this and it is working correctly for me.
This is what I did.I added a relationship fields on “Post” allows multiple selections
I added a post object field on “Page” that allows 1 selection
Both fields are named “relationship”
I added this code to my functions.php fileadd_filter('acf-post2post/overwrite-settings', 'my_overwrite_settings'); function my_overwrite_settings($settings) { $settings['relationship'] = array( 'overwrite' => true, 'type' => 'first' ); return $settings; }I added a page named “Page 1”, saved
I added a post named “Post 1” and I selected “Page 1” in the relationship field and saved it
I reloaded “Page 1” and “Post 1” was set in the post object field
I then added a post named “Post 2” and I selected “Page 1” in the relationship field and saved it
I reloaded “Page 1” and “Post 2” was set in the post object field
I reloaded “Post 1” and “Page 1” was removed from the relationship field.I am assuming you have the same field names and that they are both at the top level of the field group since you said it was working other than this.
Check your code to make sure you have the same field name and that this field name is what you’re setting in your filter. I actually thought it wasn’t working at firsts because I had a typo when I added the code… it happens.
Do not try to work on and save multiple pages at one time. In the case I mentioned above, If I tried to update a page or post instead of reloading it, the result of the relationships will be based on the last page/post save and what is selected in the relationship/post object field, overwriting anything previously saved.
Forum: Plugins
In reply to: [ACF Post-2-Post] my_overwrite_settings function example not workingI will have to check on this.