I've custom theme, and in my header I have SQL query that increase a counter into the database. The problem is it's increasing twice or two different rows(one after another).

The problem seems to present only in Firefox & Chrome, in Edge it is working fine.

I've been searching for that problem and I've found solutions for "prefetch", but I don't see such a tag in my source code, also I've tried adding some of the solutions into my functions.php:

function remove_adjacent_links()
    remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);

Could anybody help?

  • You said you don't see "such a tag" in your "source code". I presume you are referring to the <link rel="next" ... tag? Are you looking at your page's code, or at the final output of the HTML in a browser (i.e. because WordPress injects it). With that function you showed here in place, check to see if the link rel="next" tag or rel="prev" is present, because that is the most likely culprit based on what you've described. – tmdesigned Mar 20 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.