John Huebner
Forum Replies Created
-
I just did a test with a similar field type the the resulting output is as expected
<input type="hidden" name="acf[field_5eeb92d3ead7c][0]" value="1"><input type="hidden" name="acf[field_5eeb92d3ead7c][1]" value="4057"><input type="hidden" name="acf[field_5eeb92d3ead7c][2]" value="4059">You should look for other filters on your site that may be modifying the value of this field before this plugin runs. Look for any acf/load_value, acf/load_field, acf/prepare_field filters that could interfere. Somewhere there is code that is converting the array to a string.
Turn on WP_DEBUG, in newer versions on PHP you will output a warning on array to string conversions.
Forum: Plugins
In reply to: [ACF Post-2-Post] Not sure about the ACF FieldI just did a quick test of the plugin and everything is working as expected.
If you want you export your fields to PHP and post them in an issue over the github repo for this plugin and I can look at it to see if I see anything that would stop it from working.
Other than this I would suggest deactivating other plugins and testing on a different theme to see if there is a conflict somewhere else. If you can narrow this down I might be able to find a way to correct it.
Forum: Plugins
In reply to: [ACF Post-2-Post] Not sure about the ACF FieldIf this plugin was not working then there was something wrong with the setup of your fields. Either the field names were not the same or the fields were not at the top level.
The code uses field keys, which negates the need to have the fields named the same.
Forum: Plugins
In reply to: [ACF Post-2-Post] Not sure about the ACF FieldThat is an example of how to do this without this plugin. If you’re using that code then this plugin is not required.
Forum: Plugins
In reply to: [ACF Post-2-Post] Not sure about the ACF FieldSnippet?
Forum: Plugins
In reply to: [ACF Post-2-Post] Not sure about the ACF FieldSomewhere in your description of the problem you lost me.
Is the field name the same on both post types? What is the field name(s)?
Are the field at the top level, not a sub field of a group, repeater or anything else that allows sub fields?
Forum: Plugins
In reply to: [ACF Medium Editor Field] Installation – I can not find the fieldIt should in under “Content” at the bottom of that section.
There are no special steps for installing these plugins.
Forum: Plugins
In reply to: [ACF Post-2-Post] Multiple to OneYes. Create a relationship on the many side and a post object field on the one side (or a relationship field that only allows 1 entry). They just need to have the same field name.
If you want to be able to update the relationships from the many side see the overwrite filter explanation in the plugin description.
To be honest, I don’t have a clue what could be causing this. The last change I made was due to a problem with sub fields of a repeater not being updated correctly when the order of rows in a repeater was updated. Rather than remove the field I instead created hidden fields with the existing values so that the rows would be updated correctly.
Life is a little crazy right now but I will try to take a look at this.
Can you tell me the hierarchy of this field?
Parent fields, groups, any repeaters, clones, etc? Or is this a top level field outside of any of these constructs?
Forum: Plugins
In reply to: [ACF Options Page Admin] Some posts not getting updatedare you in the right place? You seem to be asking a question about one of my other plugins.
Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] remove su-iconsSorry, I missed that topic and your reply. I look forward to being able to alter the icon font used by SU. Thanks.
I am being pounded right now with trying to fix performance issues on client sites and I either need to find ways to reduce duplicate resource loading or I need to find replacements for plugins that load duplicate resources.
I understand your dilemma with FA. If I can find the time maybe I’ll look into creating that css shim myself.
Forum: Plugins
In reply to: [ACF Post-2-Post] Functionality Questions regarding CPTsThe field must be named the same on the other post type.
For example if you have two post types, cars and plates, then you need a field on both post types with the same name, for example “car_plate_relationship”
Forum: Plugins
In reply to: [Shortcodes Ultimate - Content Elements] remove su-iconsLooking at the files this would be impossible without creating a shim. It isn’t the extra CSS that’s the issue, but the CSS causes the font files to be loaded and this is a significant amount of unnecessary resources.
Perhaps you would think about creating a shim similar to the one that FA has available for old fa- icon classes.
Forum: Plugins
In reply to: [ACF Medium Editor Field] “Disabling” medium_editor keyboard stylingI’ve looked at this and I’m not sure that I want to add this change. The reason is that someone could add a custom button that accomplishes the same thing.
Rather than change the code of this plugin, what you want to do can be accomplished with a standard ACF update value filter described here. https://www.advancedcustomfields.com/resources/acf-update_value/
You can call this an edge case if you choose. I don’t find this to be an edge case at all. This can be witnessed by the many plugins I use that give me the ability to alter who can have access to an their admin pages by simply providing a filter as well has the number of questions and answers on the internet about giving editors admin abilities in other areas of WP.
$plugin_cap = apply_filters('plugin_name_cap', 'manage_options');