Hi.
I have problem with Newspaper theme, and a specially with tagDiv pulgin (requested for this theme).
Once it is turned on, the content is loaded several times, which slowes my serwis very much.
I’m sure it is because of plugin tagDev, because when it is turned off – pages load very quick (less 2 seconds).
With tagDev turned on – very slow (more then 6 second).
Please tell me what is the problem and how to solve it ?
I build simple plugin, using one important function “add_shortcode( ”, … );”, and can’t go futher, due to this several loading problem.
(web wide suggested workaround with “remove_filter(‘the_content'” or checking “in_the_loop()” don’t work)
Please help.
I’m sure, you know the solution, because I’m sure I’m the only one who has problem like mine.
This image shows that the code of my plugin is called 3 times – de facto the whole content is treated 3 times – it is not acceptable.

Below there is all the code I use :).
function interwencja_shortcode_interwencja( $attr ) {
global $post;
$value = get_post_meta( $post->ID, 'interwencja_field_data', true );
console.log('display_post_meta_data: $value: ['.print_r([$value,$attr],true).']');
if(isset($value))
return $value;
else
return 'BRAK DANYCH';
}
add_shortcode( 'interwencja', 'interwencja_shortcode_interwencja' );
function interwencja_footer(){
console.log('interwencja_footer: '.time());
}
add_action( 'wp_footer', 'interwencja_footer' );
function interwencja_header(){
console.log('interwencja_header: '.time());
}
add_action('wp_head', 'interwencja_header',0);
-
This topic was modified 5 years by
Dominik Jagiello.
-
This topic was modified 5 years by
Dominik Jagiello.
-
This topic was modified 5 years by
Dominik Jagiello.
-
This topic was modified 5 years by
Dominik Jagiello.
Erratum: In the main thread should be “… I’m sure I’m NOT the only one …” đ
Hi,
Please send an email at contact@tagdiv.com and provide wp-admin and Cpanel access, so we can investigate this issue. Also paste a link to this topic so we can easily identify you.
Let us know and we will gladly assist you.
Thanks!
Hi Bettina.
After a few comments (on other portals) about topic like this, I found quite often a little misunderstanding of the problem I’m experiencing.
The problem is not on network traffic but in parsing the content (thats why the TTFB is so long).
To observe this, you need to add to your site any simple hook like eg. âwp_headâ, in which you will send on console info from within PHP (using eg. ChomeLogger or else).
There is nothing to solve for us. It is some error in your tagDev code, so we are waiting for you to find the reason, repair and publish patch.
Hi @dominik-jagiello,
I have this problem too, I reported no result long ago. They bring a css analysis tool that only works on the home page, instead of modifying the entire theme and refining it by fixing bugs. Unfortunately, this is going in the wrong direction!
Hi @norbiQue.
Please send mi your email, to add you to corespondence with tagDev admin.
Send it thru the email I put as image here.
