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!!!
- The topic ‘Not working with custom shortcode’ is closed to new replies.