Title: Help writing a custom shortcode
Last modified: August 20, 2016

---

# Help writing a custom shortcode

 *  [ryan@jordantwigg](https://wordpress.org/support/users/ryanjordantwigg/)
 * (@ryanjordantwigg)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/help-writing-a-custom-shortcode/)
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * 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](https://wordpress.org/support/users/ryanjordantwigg/)
 * (@ryanjordantwigg)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/help-writing-a-custom-shortcode/#post-2219711)
 *     ```
       <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.

## Tags

 * [custom shortcode](https://wordpress.org/support/topic-tag/custom-shortcode/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 1 participant
 * Last reply from: [ryan@jordantwigg](https://wordpress.org/support/users/ryanjordantwigg/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/help-writing-a-custom-shortcode/#post-2219711)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
