Skip Navigation

[Résolu] iframe does not work when Views is active

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I use an [iframe] shortcode on page content is not showing up anymore. When I deactivate Views, the problem is solved.

Solution:

The user is using an empty content template for that page, disable the content template will be able to fix the problem

Relevant Documentation:

This support ticket is created Il y a 5 années et 7 mois. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Marqué : ,

This topic contains 4 réponses, has 2 voix.

Last updated by Dido Il y a 5 années et 7 mois.

Assisted by: Luo Yang.

Auteur
Publications
#1107735

Hi,

I use an iframe code on hidden link but the content is not showing up anymore.

here you see a post, where it works well
hidden link

on the page it is not working. When I deactivate Views, the problem is solved.
I want to dequeue the scripts of Views in the functions. Can you give me the code?
It is for 2 pages.
or do you have a better idea? Or is it a bug?

#1108113

Hello,

I assume you are using another plugin "iframe" (https://wordpress.org/plugins/iframe/) to setup the iframe code in your website

So it is a compatibility problem, I have tried the "iframe" plugin in my localhost, download from:
https://wordpress.org/plugins/iframe/

the shortcode [iframe] works fine in the post content and Views content template, please check these in your website:
1) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

2) Enable PHP debug mode, copy/paste debug logs here
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

3) If the problem still persists, please provide database dump file(ZIP file) of your website, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1110151

Thanks for the details, I am downloading the file, will update here if there is anything found

#1110158

Here are what I found:

Please edit the problem page "Vind een coach", in section "Content Template", you are using option "Sjabloon for Pagina's",
but the content template "Sjabloon for Pagina's" is empty content template, so it conducts the problem:
the content is not showing up anymore.

To fix it, you can choose "none", don't use content template for the page "Vind een coach"

#1110301

Hi Luo, that makes sense. It was related to Views, but in wich way?? You discoverd, great.
The point is, another person is working on a translation of the website.
She chooses a content template, maybe by accident. This explains everything.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.