jejonesjnr
Forum Replies Created
-
I have managed to resolve the issue by creating a custom shortcode in elementor which take the value and wraps the img src tags around it.
I have had to convert the image fields to text in order to accomplish this however, it now does what I need it to do.
I have amended the code in the mu-plugin folder and made sure all the images are set to show in media library. The post is still showing no image selected however, as you can see from the link below, the URL for the image is being stored in the database.
I appreciate the response however, this functionality worked perfectly well in version 1.22.1. Surely, if an upgrade breaks existing functionality, it should be rectified as a priority, no?
This is still not resolved in the latest version (1.23.3)
I have included a file called “Export from CPT UI”. Be aware that there are two post types included within the code.
I have added an extract of code into the folder. Not sure of this is what you’re loooking for?
I’m not sure how to obtain what you’re after. Can you advise please?
You are correct, I used CPT UI to creates the custom post type.
- This reply was modified 1 year, 9 months ago by jejonesjnr.
I have attached a couple more screen shots and a video showing my custom post type and the how the forminator form maps back to it.
The image fields are set to single image as you suggest but the image is still not being transferred across.
I have also reattached the json file and form export for you to reimport into your test environment.
https://1drv.ms/f/s!AsElALC9XunfmDI0mlAxkEscoqvB?e=zhXgIz
- This reply was modified 1 year, 9 months ago by jejonesjnr.
- This reply was modified 1 year, 9 months ago by jejonesjnr.
I have placed 2 images in the folder below. One shows the custom post from within the WordPress dashboard. The other shows the corresponding DB entry for the post ID. You can see that the image_two field is blank which implies that no data is being transferred using the revised code within the mu-plugin directory.
I have updated the code in the mu-plugin folder.
Ensured that the form ID has been updated and set the ACF fields to image with image ID selected. I have also ensured the form is set to save images in local media folder however, the images are still not being shown in the post details. It still says “no image selected” ??
Thanks for the code update. I’m away on holiday for a week but I’ll try when I get back and feedback.
I set all the image fields to type of “ID” but unfortunately, this did not work.
I set the first 2 image fields in ACF as “Image”. The others are text as I was just testing the code. I’m not sure why you see them all as text fields. I will digest everything else you’ve written here.
Were you able to access the files okay?
You can access both files by clicking the link below. Let me know of there are any issues. Thanks.