WordPress.org

Ready to get started?Download WordPress

Forums

WordPress - output all images attached to a post/page gallery (3 posts)

  1. bento
    Member
    Posted 4 years ago #

    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">

  2. <img src="xxx" alt="xxx" title="xxx"/>
  3. <img src="xxx" alt="xxx" title="xxx"/>
  4. <img src="xxx" alt="xxx" title="xxx"/>
  5. Is there anybody who can help me on this one?

  • stefsegers
    Member
    Posted 3 years ago #

    Hi Bento,

    Did you find your answer already? I have also in the same problem. I want to manipulate the output of the gallery shortcode.
    My output has to be different, but it's the same problem.

    Stef

  • ColourPainter
    Member
    Posted 3 years ago #

    Hi bento.

    I was reading one of your previous posts about back to gallery links on imagebrowser for nextgen gallery: http://wordpress.org/support/topic/plugin-nextgen-gallery-back-to-album-link-rom-blog-single-blog-post-not?replies=3

    Forgive me for coming through on this thread but the one concerned is closed.

    Do you still have that hack working? Do you have an example working? Might be interested in purchasing it..

    Many thanks

    Julia

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags