dbhynds
Forum Replies Created
-
Forum: Plugins
In reply to: [Lazy Load XT] Ajax Load More and Lazy load XTAssuming you’re using the most recent version of the plugin (0.4), you can pass the HTML generated by the shortcode to the function
get_lazyloadxt_html
to filter it…echo get_lazyloadxt_html( do_shortcode('[ajax_load_more]') );
Alternately you could run…
apply_filters('the_content', do_shortcode('[ajax_load_more]') );
Either should do the trick. Let me know if that works.
Forum: Plugins
In reply to: [Lazy Load XT] FYI – Lazy Load Pop Up and UTF-8My guess is that your theme is using some other function to load the images on that page. With the new version of the plugin, I have created a function that you can use to filter HTML to be lazy loaded. Check out the plugin FAQ for an explanation of how to use it, and let me know if you have questions.
Forum: Plugins
In reply to: [Lazy Load XT] Syntax Error Taking Down My SiteTry
->
Forum: Plugins
In reply to: [Lazy Load XT] img are processed multiple timesJust released 0.4 with this implemented in it. Thanks for your help! I sincerely appreciate it.
Forum: Plugins
In reply to: [Lazy Load XT] I don't see any effectI have implemented this change into version 0.4, which is now released. Let me know if you have any problems with it.
Forum: Plugins
In reply to: [Lazy Load XT] Content doubles in a weird way in RSS.The newest version (0.4) fixes this issue.
Forum: Plugins
In reply to: [Lazy Load XT] FYI – Lazy Load Pop Up and UTF-8Hi,
I just released a new version (0.4) which may fix the issues you were having. Make sure to click the option to “Enable AJAX navigation”
It might not work, depending on how your theme is set up. However, give it a try and let me know.
Forum: Plugins
In reply to: [Lazy Load XT] img are processed multiple timesAhah. So my original regex would match this:
<img src="" /><noscript></noscript>Blah blah<br />
because it looks for a “/>” ?
Where as yours looks until a “>” and then checks for the <noscript> ?
I think that makes sense. And yeah, that would be a good amendment to the code. I’ll incorporate it and release a new version this weekend.
Thanks for your help!
Forum: Plugins
In reply to: [Lazy Load XT] img are processed multiple times(Look for the bold characters in those img tags. They’re kinda hard to see.)
Forum: Plugins
In reply to: [Lazy Load XT] img are processed multiple times1135603 is correct.
I understand the basics of regex, but I’m no pro. I tested both expressions agains the HTML you provided, and they both accurately matched the second img but not the first.
I recognize that they both work, so I don’t understand the purpose of changing +.*? to ([^<]+). Can you explain it?
Does ([^<]+) begin here? …
<img class=”fl-photo-img” src=”https://local.wordpress.dev/wp-content/uploads/2015/04/5527cc7c08d02_input_1.jpg” alt=”5527cc7c08d02_input_1″ itemprop=”image” />Where as +.*? begins here? …
<img class=”fl-photo-img” src=”https://local.wordpress.dev/wp-content/uploads/2015/04/5527cc7c08d02_input_1.jpg” alt=”5527cc7c08d02_input_1″ itemprop=”image” />Forum: Plugins
In reply to: [Lazy Load XT] Carousel on home page not lazy loadingI have a development version of the plugin here. There is a new option for AJAX on the settings page. If you check it, it should work. I will be releasing the new version soon.
Forum: Plugins
In reply to: [Lazy Load XT] img are processed multiple timesI have a development version of the plugin here that incorporates the regex change you suggested. I’ll be releasing the next version soon.
Forum: Plugins
In reply to: [Lazy Load XT] Content doubles in a weird way in RSS.I have a development version of the plugin here that should fix this problem. I’ll be releasing the new version soon.
Forum: Plugins
In reply to: [Lazy Load XT] I don't see any effectI have a development version of the plugin here. It allows you to pass HTML to the function
get_lazyloadxt_html()
.Pass HTML to it as a string. It gets returned as a string, which you can echo.
Forum: Plugins
In reply to: [Lazy Load XT] Carousel on home page not lazy loadingSomeone else was having a similar problem last week. I have a fix for it ready to go in the next release. I’m just doing final testing now, so it should be soon. Just update the plugin when the next version comes out, and you should be fine.