justinios
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF Quick Edit Fields] Not working with custom filter (parse_query)UPDATE (2021-12-19 02:58):
Because I couldn’t get the columns or the Quick Edit fields to show up when filtering results using the “pre_get_posts” hook, I added all the columns and quick-edit fields myself. I got everything working and then when I filtered results, my quick edit fields didn’t show up and some column values that relied on the “acf” functions like “get_fields” didn’t work. I googled and found this post (https://support.advancedcustomfields.com/forums/topic/acf-and-pre_get_posts/) that had a check for “!$query->is_main_query()”. When I added that, all of a sudden, my columns and quick-edit-fields worked with filtered results. The check is added in the function used with the “pre_get_posts” hook. Once I added that check, I removed my custom columns and quick-edit fields and re-enabled the options in ACF Quick Edit Fields and everything worked. So it was an issue with my “pre_get_posts” function and now the plugin itself.Hope this helps someone.
- This reply was modified 2 years, 11 months ago by justinios.
Update: I was able to figure out the problem. Posting here in case it helps someone else. I had custom fields on my custom post type that included an “image” field type, but the custom role did NOT have “upload files” enabled in the capabilities. Once I enabled that, it worked.
- This reply was modified 3 years, 2 months ago by justinios.
Forum: Plugins
In reply to: [WP Remote Users Sync] Syncing Metadata from ACF (Custom Fields)I tried to edit the original post but it says I don’t have permission. Here are some screenshots of the settings dialogs and logs from each site.
https://paste.pics/c779c2f666e54a729f97b52e1e04fe0a – The data array sending from site1 to site2 (which shows no metadata)
https://paste.pics/429635515dc357107597a71ff8b50867 – The settings dialog from site2 showing the incoming metadata in the settings
https://paste.pics/2f2fb61a1774d01dd6c068cb2572c346 – The log from site1 when updating metadata on site2
https://paste.pics/7de7c15835514ff2114bda8d073bc6ce – The settings dialog from site1 showing a blank metadata in the outgoing (which should send all metadata)
https://paste.pics/95953e0d3d640ee72df9358fe425db07 – The log from site1 showing the metadata action was fired