Home › Forums › General Issues › Creating ACF custom field type and using some standart field as additional
Main logic of this field is:
1. Choose or upload some image.
2. Draw hotspots on that image with jquery plugin “Image map pro”.
3. And then save all info to field value.
Im not strong in PHP abstract programming, so current my main question is:
Can I somehow logically extend functionality of acf_field_image class? And then use it in creating image choosing/uploading functionality for my new custom field type.
It seems Image Map Pro is a plugin for WordPress. This means that this plugin will have its own way to save the data and to show it on the front end.
You can use ACF to upload the image, and it will be saved in the WordPress media library. Unfortunately, I’m not sure if you can activate Image Map Pro after the image is uploaded. For further information, kindly get in touch with Image Map Pro author instead.
Question: How I can use ACF Image choose/upload button in my new acf field type? Maybe is some code example?
Solved with this piece of code:
You must be logged in to reply to this topic.
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.