- This topic has 5 replies, 2 voices, and was last updated 1 year, 2 months ago by Tom.
June 27, 2019 at 9:08 am #943057K
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.June 27, 2019 at 2:24 pm #943303TomLead DeveloperLead Developer
We don’t use the
loop_starthook anywhere in the theme.
Our author archives use the
archives.phpfile found here: https://github.com/tomusborne/generatepress/blob/2.3.2/archive.php
Perhaps the developer can offer more details so we can look into it further?July 1, 2019 at 9:52 am #946280K
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:
You can use debugging function Show positions to see where the hooks are called:
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.July 1, 2019 at 6:28 pm #946580TomLead DeveloperLead Developer
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?July 2, 2019 at 9:17 am #947161K
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!July 2, 2019 at 10:06 am #947205
- You must be logged in to reply to this topic.