• [Code moderated as per the Forum Rules. Please use the pastebin]

    Ok so the above code is what i’m trying to turn into a wp shortcode. The idea being the, the attrubutes i would need the user to be able to input each time the shortcode is implemented are, the

    • anchor tag
    • this image-link is the displayed in the “zoomarea”

    • src image
    • this image is the displayed thumbnail

    • alt tag
    • for that certain image

    i also need the user to input a title and content which falls next to the image.

    So if your still with me i need a shortcode which would look like this to the user when using it within post!

    [zoomGallery a href="" src="" alt=""]
    
    <h2>Left title</h2>
    Mauris erat ligula, egestas a eleifend et, euismod ut erat. Nunc vehicula lorem eget dui pretium ornare.
    Aenean dui turpis, condimentum non porta a, malesuada eget sem. Suspendisse a leo sem, at laoreet est. In commodo ultricies turpis eu facilisis. 
    
    [/zoomGallery]

    thanks in advanced for your help…

    Ryan

Viewing 1 replies (of 1 total)
  • Thread Starter ryan@jordantwigg

    (@ryanjordantwigg)

    <div class="gallery-list">
    
    <div class="left-des">
    <h2>Left title</h2>
    <p>Mauris erat ligula, egestas a eleifend et, euismod ut erat. Nunc vehicula lorem eget dui pretium ornare. </p>
    <p>Aenean dui turpis, condimentum non porta a, malesuada eget sem. Suspendisse a leo sem, at laoreet est. In commodo ultricies turpis eu facilisis. </p>
    </div>
    
    <a href="images/shouting-big.jpg" class = "cloud-zoom" id="zoom1" rel="adjustX: 10, adjustY:-4">
    <img src="images/shouting.jpg" alt="" title="Optional title display" /></a>
    
    <div class="zooomarea"></div>
    
    </div><!--end gallery list--->
Viewing 1 replies (of 1 total)
  • The topic ‘Help writing a custom shortcode’ is closed to new replies.