the_content filter called twice

Posted in: Newspaper
Post count: 15

Hi,

Newspaper is running the the_content filter twice with the cloud templates. Which causes ads (ad inserter) to appear two times. The theme is practically breaking any plugin that uses the_content filter.

https://u44510p41525.web0097.zxcs-klant.nl/japanse-curry-stoofvlees-recept/

In the inspect view I see:
<div class=”code-block code-block-4″ style=”margin: 8px 0; clear: both;”></div>
<div class=”code-block code-block-4″ style=”margin: 8px 0; clear: both;”></div>

instead of one time.

Post count: 35449

Hello,

Unfortunately we didn’t tested the ad inserter plugin with our theme, therefore we can not say for sure if this will work correctly with our theme or not, sorry!! Also, we cannot provide support for untested plugins -> https://forum.tagdiv.com/support-policy-2/ , for this you’ll need custom work.
This is our list with tested plugins with our theme -> https://www.screencast.com/t/cmPkh9jba4sZ

Thank you for your understanding!

Post count: 15

Hello,

That is not the issue, only an example to understand the issue better. The problem is that the the_content filter is called twice, instead of once.

As a result, multiple users experience problems (example: https://forum.tagdiv.com/topic/issue-with-advanced-ads/ ). These plugins are not the problem, but newspaper is.

So to be clear: I don’t ask to verify the correct behaviour of ad inserter, but I report an issue with the newspaper template. In this case when I use the cloud template functionality.

  • This reply was modified 6 years by conara.
  • This reply was modified 6 years by conara.
Post count: 35449

Hello,

From my investigation, this “issue” appear only if you are using some ads plugin, if you set the ads code directly in single post template -> http://prntscr.com/pga4r3 or in ad box, then the ad is not duplicate -> http://prntscr.com/pga5ds -> http://prntscr.com/pga5ge
Also I pass this thread to our developers too.

Thank you for your understanding!

Post count: 15

Hi,

What is exactly your point? Of course only certain plugins suffer from this, because it is something wrong in the template. If a certain plugin doesn’t use this wordpress function it doesn’t “suffer” from this. It is not an issue with specific plugins. It is likely caused by tagDiv Composer not following “best practice” for WordPress plugin development.

Is it possible that a developer gives his / her opinion on this subject?

Post count: 35449

Hi,

I have already passed this topic to a developer to check the code from the single post template, if there would be a problem, then the problem will be fixed.

Thank you!

Post count: 9

Was there a resolution for this? I’m having the same problem.

Post count: 35449

Hi,

The problem seems to be related to tagDiv Cloud Library and sometimes on footer page, so our developers are trying to separate the format of clod header from the post content, in this way the problem will be solved, unfortunately for the moment this is not available in current version of Newspaper, sorry!

Thank you!

Post count: 104

Any update on this? This is a major issue I am having with several plugins and Cloud Library? Spent days with other developers to isolate this issue.

Post count: 35449

Hi,
Unfortunately, for the moment we do not have a quick fix for this problem, sorry!
Our developers are investigating this problem, and hope that in the coming updates those problems to be solved!
Thank you for your understanding!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.