you’ll have to add the YT differently Jeckll; simple use
https://youtu.be/FROpp_zmOfE
instead of the iframe-code and it will (very likely) work.
frank
Hi Frank,
thanks for the (very) quick response.
Sadly, all that does is post the URL where the video was.
View post on imgur.com
Any other ideas?
Thanks for your efforts,
Jeckll
Well, the problem is I (and LYTE) don’t know how the video is stored, that depends on the pagebuilder really. Assuming it is in a widget (some page builders do), you could try to add this code snippet which forces LYTE to also act on text widgets;
add_action('lyte_actionsfilters','timelash_lyte_force_widgets',10,0);
function timelash_lyte_force_widgets() {
add_filter('widget_text', 'lyte_parse', 4);
}
hope this helps,
frank
additionally; what seems to work with a lot of pagebuilders is adding the video in a text/ html widget/ element using the LYTE shortcode, e.g.
[lyte id="qJ_PMvjmC6M"]
Thanks a lot frank,
the Lyte shortcode did the trick.
You are awesome and so is your plugin!
Have a great day,
Jeckll
Thanks for the compliments Jeckll, feel free to leave a review of the plugin and support here! π
Isn’t it highly possible that your plugin only aims for the_content and/or the_excerpt? I wanted to use it on a site that makes use of custom fields (Advanced Custom Fields, to be precise), and using it on a WYSIWYG field with normal YT links doesn’t work, only when I use your shortcodes. With that little amount of YT videos on the site it’s not much of a hurdle to train the site owner for implementing it, though it would be a lot nicer if normal YouTube URLs worked flawlessly ;). Thanks anyway for your plugin, it nonetheless works super :).
Isnβt it highly possible that your plugin only aims for the_content and/or the_excerpt?
It’s not just highly possible, it simply is the case actually π Well, the_content, the_excerpt and .. Gutenberg blocks! π
I wanted to use it on a site that makes use of custom fields (Advanced Custom Fields, to be precise), and using it on a WYSIWYG field with normal YT links doesnβt work
well, problem is LYTE cannot automagically know what ACF (or other custom fields) to act on. if you have an idea for a generic plug&play solution I’d be happy to look into that though π
Thanks anyway for your plugin, it nonetheless works super :).
thanks π
Hey @optimizingmatters,
thanks for taking your time to get back on my post :). I honestly am not enough of a developer to know how to address custom fields of sorts. Maybe someone else having a clue :)?
All the best to you!