Title: Not working with custom shortcode
Last modified: August 21, 2016

---

# Not working with custom shortcode

 *  [morfie](https://wordpress.org/support/users/morfie/)
 * (@morfie)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/not-working-with-custom-shortcode/)
 * I have a custom shortcode that outputs images, very similar to WP’s [gallery]
   shortcode.
    I then use flexslider on the HTML that is produced by that shortcode.
   I’d like for those images to be lazy loaded. At first, I installed this plugin
   and reloaded the page. Nothing changed in the markup. The shortcode uses wp_get_attachment_image()
   to fetch the img src. Second, I tried doing: `$image_output = apply_filters ('
   bj_lazy_load_html', $image_output );`
 * My markup changed a lot (added all the data-lazy-src attribs, <noscript> tags,
   and .lazy .data-lazy-ready to my tags. However, nothing appears on the front-
   end. When I mouse over the <img> tag in firebug, I just get the 1×1 loader image.
 * Please advise my on what I should do to fix this issue.
    Thank you!!!
 * [https://wordpress.org/plugins/bj-lazy-load/](https://wordpress.org/plugins/bj-lazy-load/)

The topic ‘Not working with custom shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bj-lazy-load_9084ba.svg)
 * [BJ Lazy Load](https://wordpress.org/plugins/bj-lazy-load/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bj-lazy-load/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bj-lazy-load/)
 * [Active Topics](https://wordpress.org/support/plugin/bj-lazy-load/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bj-lazy-load/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bj-lazy-load/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [morfie](https://wordpress.org/support/users/morfie/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/not-working-with-custom-shortcode/)
 * Status: not resolved