Skip Navigation

[Resolved] iframe does not work when Views is active

This thread is resolved. Here is a description of the problem and solution.

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 6 years, 2 months ago. 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.

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)

This topic contains 4 replies, has 2 voices.

Last updated by Dido 6 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#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.