Support » Plugins » WordPress – output all images attached to a post/page gallery

  • I am trying to build a semi-professional WordPress plugin based on the great Jquery Cycle Plugin (http://malsup.com/jquery/cycle/). I also would like to use the WP build-in image gallery uploader. In order to make the HTML work with the Jquery plugin I need a specific output, described further below).

    I would like to customise the WP gallery function to simply output a list with all images attached to the respective post/page (the images should be in the respective size: s, m or large, whichever was used in the gallery. Also same order and alt/title informations should be included with each image).

    Also I would like to stop the gallery function from outputting invalid HTML i.e. it inserts style tags in the middle of the body html (basically I don`t need any of the bulky HTML WP gallery output, apart from the formatting described below).

    Ideally I would like to output the attached images of a post/page either enclosed in a div (or as a HTML-list):

    a.)

    <div id=”gallery”>
    <img src=”xxx” alt=”xxx” title=”xxx”/>
    <img src=”xxx” alt=”xxx” title=”xxx”/>
    <img src=”xxx” alt=”xxx” title=”xxx”/>
    </div>

    b.)

    <ul id=”gallery”>

  • <img src=”xxx” alt=”xxx” title=”xxx”/>
  • <img src=”xxx” alt=”xxx” title=”xxx”/>
  • <img src=”xxx” alt=”xxx” title=”xxx”/>
  • Is there anybody who can help me on this one?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress – output all images attached to a post/page gallery’ is closed to new replies.