How to keep "space" in HTML code? IFTTT to WordPress issue

supermex

Elite Member
Joined
Nov 19, 2016
Messages
1,825
Reaction score
658
I'm using IFTTT to post new YouTube videos automatically to WordPress. Every time I upload new video, a new WP post should be generated with this HTML code:

Code:
[vc_row row_height_percent="0" overlay_color="color-396201"
overlay_alpha="100" gutter_size="3" column_width_percent="100"
shift_y="0" z_index="0"][vc_column width="1/1"][vc_column_text]

<div class="responsive-video">

https://youtu.be/"videoID"

</div>
[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width="1/1"]   
[uncode_block id="67020"][/vc_column][/vc_row]

When IFTTT would post this on WordPress, it would work! BUT: IFTTT does not post this exact code - instead it posts this:

Code:
[vc_row row_height_percent="0" overlay_color="color-396201"
overlay_alpha="100" gutter_size="3" column_width_percent="100"
shift_y="0" z_index="0"][vc_column width="1/1"][vc_column_text]
<div class="responsive-video">https://youtu.be/"videoID"</div>
[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width="1/1"]   
[uncode_block id="67020"][/vc_column][/vc_row]

So IFTTT posts the code without those "spaces" before/after the video URL. And because of that WordPress doesn't automatically embed the video. (It doesn't recognize the URL as a video without those spaces... So on the post the video URL is displayed just as a normal text. Any idea how to tell IFTTT to keep those "spaces" in the code, so WordPress embeds the video?
 
Have you tried putting in <br> (HTML code for new line) or &nbsp; (HTML code for one space character) in the code? You might as well give that a try.
 
Have you tried putting in <br> (HTML code for new line) or &nbsp; (HTML code for one space character) in the code? You might as well give that a try.
I tried that, but that only creates a new line in the "visual text", the HTML code from IFTTT is still "compressed" without spaces.
 
Still nothing works...
 
Back
Top