WordPress / WordPress/secure-custom-fields
Image Field type always returns image id, not image url or array
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 131
- Forks
- 64
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
When you create a new image field and populate it, the Return format is ignored. If you set it to Image URL or Image Array, it still always returns the Image ID
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Image Field implementation and the code that handles its Return format setting. Reproduce the issue with Image URL and Image Array formats, then verify that populated fields return the selected format instead of only the image ID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100