Home › Forums › General Issues › Add Image Size to another ACF Field › Reply To: Add Image Size to another ACF Field
Hi @neodjandre
Yes, it will only show the image URL, and yes, by using the image array method, you will get other data too. That’s why I told you to use the original field instead of creating a new one.
What you are trying to do is uploading the resized image programmatically. This needs advanced PHP code and advanced knowledge on how WordPress uploads the files. I believe you can do it, but it is so much easier to save the resized file to your computer and upload it manually than creating the code you need, especially if you are not familiar with WordPress and PHP.
To do that you need to upload the file again somehow using WordPress core functions and then get the attachment ID. After that, you can update the new field with the new attachment by using the update_field()
function
If you don’t know how to do it and have no time to learn about it, I suggest you hire a developer to help you out with it, and I’d recommend looking for one on https://studio.envato.com/, https://www.upwork.com/, or https://codeable.io/.
I hope this makes sense 🙂
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.