Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Custom Fields – Photo Gallery

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #33307
    JoeBass
    Member

    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.

    #82510
    shazdeh
    Member

    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.

    #82966
    JoeBass
    Member

    have any reccomendations where to learn more?

    #83436
    rahul
    Member

    Upload custom image

    Read more: http://joelnagy.com/p240#ixzz1RnJ1qwdS

    Apartment / Flat

    #83383
    jacorre
    Participant

    Try NetTuts.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.