[Support request] Loop Start twice for author pages?

Home Forums Support [Support request] Loop Start twice for author pages?

Home Forums Support Loop Start twice for author pages?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #943303
    Tom
    Lead 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?

    #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.

    #946580
    Tom
    Lead 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?

    #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!

    #947205
    Tom
    Lead Developer
    Lead Developer

    Sounds good – I’ll take a look around.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.