Help writing a custom shortcode
-
[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
- src image
- alt tag
this image-link is the displayed in the “zoomarea”
this image is the displayed thumbnail
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)
Viewing 1 replies (of 1 total)
- The topic ‘Help writing a custom shortcode’ is closed to new replies.