Home › Forums › Support › Loop Start twice for author pages? This topic has 5 replies, 2 voices, and was last updated 4 years, 9 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts June 27, 2019 at 9:08 am #943057 K 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. June 27, 2019 at 2:24 pm #943303 TomLead Developer Lead Developer Hi there, We don’t use the loop_start hook anywhere in the theme. Our author archives use the archives.php file 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 #946280 K 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. July 1, 2019 at 6:28 pm #946580 TomLead Developer Lead 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 #947161 K 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! July 2, 2019 at 10:06 am #947205 TomLead Developer Lead Developer Sounds good – I’ll take a look around. Thanks! Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In