Title: Youtube code before Lyte-wrapper
Last modified: February 25, 2019

---

# Youtube code before Lyte-wrapper

 *  Resolved [splunsh](https://wordpress.org/support/users/splunsh/)
 * (@splunsh)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/youtube-code-before-lyte-wrapper/)
 * Hi,
    the plugin works fine, but right before the Lyte-wrapper I have parts of
   the youtube embed code as output – like this:
 *     ```
       <div class="col-xs-12">
       httpv://www.youtube.com/watch?v=
       <div class="lyte-wrapper" style="width:1280px;max-width: 100%;margin:5px auto;">
       <div class="lyte hidef lP" id="WYL_Wc5J5u3Ix2M">…</div>
       </div>
       ```
   
 * The youtube embed code comes from an ACF custom field.
 * I output it with this code:
    `echo lyte_preparse(get_field('video_intro'));` 
   Is there something that I can do? Thanks a lot for this

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/youtube-code-before-lyte-wrapper/#post-11245430)
 * And what’s the content of the ACF custom field splunsh?
 *  Thread Starter [splunsh](https://wordpress.org/support/users/splunsh/)
 * (@splunsh)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/youtube-code-before-lyte-wrapper/#post-11245438)
 * The content is just the youtube embed code: [https://www.youtube.com/embed/Wc5J5u3Ix2M](https://www.youtube.com/embed/Wc5J5u3Ix2M)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/youtube-code-before-lyte-wrapper/#post-11245479)
 * Ah, lyte_preparse expects just the ID, so can you try `Wc5J5u3Ix2M` instead?
 *  Thread Starter [splunsh](https://wordpress.org/support/users/splunsh/)
 * (@splunsh)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/youtube-code-before-lyte-wrapper/#post-11245606)
 * Thanks, I’ve found the error – in the ACF configuration for this field. Should
   have been just “text”, but was set to wysywig… (I inherited the project)
    Changed
   that, now everything is working just fine! Thanks for your efforts! Joerg
    -  This reply was modified 7 years, 3 months ago by [splunsh](https://wordpress.org/support/users/splunsh/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/youtube-code-before-lyte-wrapper/#post-11246187)
 * Happy you got it working Joerg, great job!
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/#new-post)!
   🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Youtube code before Lyte-wrapper’ is closed to new replies.

 * ![](https://ps.w.org/wp-youtube-lyte/assets/icon-128x128.png?rev=1836005)
 * [WP YouTube Lyte](https://wordpress.org/plugins/wp-youtube-lyte/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-lyte/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-lyte/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/youtube-code-before-lyte-wrapper/#post-11246187)
 * Status: resolved