Query Hooked in Header as Main Query
-
Hi,
I’m having trouble with WordPress SEO and one of my plugins.
My plugin hooks a function on the_content(), and the first thing done in this function is to check is the current query is_main_query(). However, WordPress SEO seems to trigger a query in WordPress header (on the wp_head() action) which is identified as a main query.
The result, as you can immagine, is that my function is hooked in the header of the site and in the real content part.
Could you please tell me what exactly is hooked on wp_head() as a main query?
Cheers,
Julien
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Query Hooked in Header as Main Query’ is closed to new replies.