Skip Navigation

[Escalated to 2nd Tier] YouTube video is not displayed

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 16 replies, has 2 voices.

Last updated by Nigel 5 months, 1 week ago.

Assigned support staff: Nigel.

Author
Posts
#2402615
Снимок экрана 2022-06-22 в 10.48.53.png
Снимок экрана 2022-06-22 в 10.48.40.png

Tell us what you are trying to do?
Publish custom post with YouTube link in respective field.

All such posts are listed in template. But there are in one post video is displayed and in another post is NOT displayed.

Please help to fix the issue why video is not displayed.

Thank you in advance
Anton

#2402837

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Anton

The problem is with the format of the URL.

When I just checked on my own site, I used the page URL where I was watching a video (hidden link), and I also tried with the link generated by Youtube when using the share button (hidden link).

Both worked correctly.

But it looks like you are trying to embed youtube short videos (introduced last year), which have a slightly different format for the URL, which Toolset doesn't recognise.

On my test site I'm outputting the videos using the Toolset Youtube block, and that is when the problem occurs.

But if you output the video using a Types shortcode, it does work correctly, even with the short video URLs.

If necessary you can use a shortcode block (or other text-based block that parses shortcodes) to add the shortcode to output the video, which would look something like this:

[types field='my-youtube-field' width='600' height='400'][/types]

Do you want to try that and see if it works?

#2403339
Снимок экрана 2022-06-23 в 10.31.27.png
Снимок экрана 2022-06-23 в 10.32.19.png

video is not embedded in this way. Just link is displayed.

#2403409

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I don't recognise the settings in the sidebar in your screenshot.

Can you remove the Fields and Text block and add the same types shortcode to a Shortcode block instead?

#2403481
Снимок экрана 2022-06-23 в 12.28.23.png

added as shortcode but result the same 🙁

#2403491

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, I can't tell from your screenshots why it's not working when using the shortcode.

Could I get access to your site to look for myself?

Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

Can you also confirm the url of where we can see the problem. It looks like you are editing a Content Template.

#2404047

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2022-06-24 at 07.56.13.png

OK, now I see the problem.

The custom field is a URL field not an Embedded Media field.

The Youtube block can accept a URL field as a Dynamic Source, but as we have discovered it does not recognise the new short Youtube video URL format.

The types shortcode will only output a youtube video if it is an Embedded Media field type. A URL field can only output the URL or a link with that URL.

Try changing the field type to Embedded Media, and then you should be able to use the types shortcode to output the videos.

#2404069

I've changed the type to embedded video. The problem still in place for new type of link.

#2404157

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hmm. That's odd.

I checked on your site with the exact same simplified set up I have on my own test site (where this works), with a test page called "Nigel", which has a value for the embed custom field and outputs the field in the page body using the types shortcode.

And on your site it is not working.

Can we check for conflicts from other plugins? Disable all plugins except for Types and see whether it works. If it does, that means another plugin is interfering with the process, and we can determine which through a process of elimination, re-activating plugins and re-testing.

#2405207

deactivated. The issue still in place

#2405479

still only links are displayed:

hidden link

#2405735

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

That page doesn't contain anything related to this issue as far as I can see, it just contains a form.

I checked on the test page I created previously—hidden link it does appear to be working correctly, which suggests a conflict with some plugin is the issue, if you want to re-activate the plugins you need to check.

Let me know what you find.

#2406031

if you login the form, you'll see template with issue.

#2406039
Снимок экрана 2022-06-27 в 15.46.37.png

attaching screenshot

#2406107

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, I'm going down rabbit holes that seem unrelated.

The test page has a form, which on submission redirects to a page which doesn't have any content related to the problem, which is displayed using a content template that contains about 30 conditional blocks.

Can you please demonstrate the problem on a simple test page that only contains what is specifically required to demonstrate the problem?

I know the developers are planning to look into the problem with the youtube.com shorts URLs not working with the youtube block, and we may need to wait for that solution.