Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thegreendesigner

    (@thegreendesigner)

    Hi Josh,

    Thanks for the quick reply but it won’t work for what I’m trying to do. I have uploaded images to the wordpress Media Library and entered alt tag text and captions, etc. Next I created a page and inserted the HTML above to display some of the images I uploaded.

    What I need is some code which will lookup the image in the media library, grab the alt text and display it in the page.

    The reason for this is that I may show the same image in different pages so I don’t want to have to type in the same alt text every time I add the image to a page.

    I need to do it this way as I’m using some jquery and css to display my images in a photo gallery and if I use the built in wordpress gallery it adds loads of divs, classes and ids and breaks the jquery/css. The only way I’ve found to avoid this is to add the <img tag to the page via the HTML tab in the editor but it gives me the headache of trying to find a way to lookup the alt text from the media library.

    Cheers…

    Thread Starter thegreendesigner

    (@thegreendesigner)

    Thanks that worked great.

Viewing 2 replies - 1 through 2 (of 2 total)