- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Custom Fields – Photo Gallery
Ive read articles on this and watched a video but sometimes it works most the time it does not and i would not like to use [gallery]. I am trying to use custom fields to display images but it is not working. My process is upload the image to WP from the desktop, then i copy the file URL, go to custom fields select name ‘images’, paste in the file url for the value and update page. In the loop, the code is ID, ‘images’, false); ?>. Is there something else i should be using? Would like to learn Custom Fields and it all looks so easy but apparently Im tard.
the third parameter is $single which determines whether to return a single result or an array of results (if you have multiple custom fields with the same name).
You have to get the result and loop over them to show the results, echoing an array is no good.
have any reccomendations where to learn more?