Tagged: Oxygen builder
September 18, 2020 at 6:20 am #10899guit4evaParticipant
I have been adding images to a site using Piklist’s File Upload:
piklist('field', array( 'type' => 'file' ,'field' => 'establishment_option_divider' ,'scope' => 'post_meta' ,'label' => 'Divider Image' ,'options' => array( 'modal_title' => 'Add Image' ,'button' => 'Add Image' ,'save' => 'url' ),'validate' => array( array( 'type' => 'limit' ,'options' => array( 'min' => 1 ,'max' => 1 ,'count' => 'images' ) ) ) ));
Suddenly the images won’t load (except one field) and the inspector shows empty urls: ‘background-image:url()’.
The only thing that has changed was that I activated Imagify – and have since deactivated it, but the issue is still there.
Things I have tried:
1) Updated Piklist to latest version
2) Deactivated any possible plugin culprits
3) Tried different configurations for the file uploader (ie, basic uploader, saving as ID, setting multiple to false etc).
4) Removed images, save, added images, save.
5) Uploaded new images to posts.
Nothing seems to be working and I’m not sure what else to try? What is very strange is that there is ONE field that does show the images correctly, and the only difference between that field and the others is the field name – the rest of the settings are identical.
I’m running WordPress 5.1.1 with Oxygen builder. Any help would be greatly appreciated as I’m well and truly stuck!
September 18, 2020 at 6:27 am #10900guit4evaParticipant
I’ve finally found the culprit, though I still don’t understand what is causing it:
I see that the Piklist fields show up twice in the Oxygen builder ‘dynamic data’ selector. But only for this particular custom post type. I don’t have duplicate metabox files, so I’m not sure why they are getting duplicated? The good news is that it’s working though, phew…
I’ll post back here with a solution for anyone else who might experience a similar problem with Piklist and Oxygen in future if I figure it out!
September 18, 2020 at 7:34 am #10901
February 23, 2021 at 2:32 pm #11149eric7186Participant
I am following this because I also use Oxygen builder and would see how others are using Piklist with Oxy.
- You must be logged in to reply to this topic.