Support » Plugin: WP YouTube Lyte » Compatibility with Featured Video Plus

  • Resolved ac1643

    (@ac1643)


    Hi Frank

    I’m trying out the ‘Featured Video Plus’ plugin, however your plugin doesn’t seem to be compatible. When I enter in a youtube URL in the Featured Video Plus section of the Edit Post area, putting it in httpv format, nothing seems to happen – no image appears as the featured image. I’m not sure how much of this is to do with your plugin or Featured Video Plus, but if you could take a look and confirm the compatibility of the plugins that would be appreciated.

    Thanks

    https://wordpress.org/plugins/wp-youtube-lyte/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    hi ac1643;
    I had a quick look at “featured video plus” and I don’t think there’s a filter (or action) I could hook into to make the featured video a lyte one.

    So maybe go the other route, asking the dev of “featured video plus” to render httpv-url’s as lyte if wp-youtube-lyte isi installed?

    frank

    Thanks, I’ll do that and come back here if I need to ask further questions

    Plugin Author Frank Goossens

    (@futtta)

    I had a quick look at “featured video plus” and I don’t think there’s a filter (or action) I could hook into to make the featured video a lyte one.

    well, I had another look and turns out I was wrong 🙂

    try this code (you can use the code snippets plugin, activate on front-end only):

    add_filter('get_the_post_video_filter','lyte_featured_video');
    function lyte_featured_video($in) {
    	$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
    	$meta = get_post_meta( $post_id, '_fvp_video', true );
      	if (($meta["provider"]==="youtube") && (function_exists('lyte_parse'))) {
    		return lyte_parse($meta["full"]);
    	}
     	return $in;
    }

    that was fun 🙂

    frank

    Thanks Frank, I’ll give this a shot.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.