Site logo

Archived topic

Loop Start twice for author pages?

5 replies · Started by K on June 27, 2019

Viewing posts 1–6 of 6

Hi,

I was having an issue with one of my plugins (ad inserter pro) on Author archives, and upon debugging, the developer said

"Your theme call hook loop_start for author pages two times.
Because of this poition Before post appears twice:"

Is this a bug?

Thanks.

Hi Tom,

Unfortunately, they didn't give a detailed response:

Maybe they don't use it directly but the theme very likely calls some WP function (directly or indirectly) that uses it:
https://developer.wordpress.org/reference/hooks/loop_start/
https://developer.wordpress.org/reference/classes/wp_query/the_post/

You can use debugging function Show positions to see where the hooks are called:
https://adinserter.pro/documentation/automatic-insertion
https://adinserter.pro/documentation/debugging

Tom, let me know if you want access to my staging site where you can view the actual issue. They did provide me with a workaround, so it's not important unless you want to get to the bottom of it.

Thanks.

Well, the theme does have a query on the author archives. Without it, our author archives would be empty.

What exactly is that plugin requiring on the theme side of things? Are there specific instructions?

Hi Tom,

No specific theme requirements mentioned. They do have a ton of documentation: https://adinserter.pro/documentation.

For me, I'm good as the plugin author already provided a workaround.

But if you do want to examine this issue further, the author is quite responsive and you should be able to contact him from the same page above.

Thanks!

Sounds good - I'll take a look around.

Thanks!

This archived topic is closed to new replies.