WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Facebook: Advanced Social Optimization
[resolved] Author Archive Not Found - End of Loop (3 posts)

  1. jon.evans
    Member
    Posted 1 year ago #

    Great plugin, this is not a show-stopper:
    Something is causing my site's author archive to think that it has reached the end of the loop before it has begun - have_posts() returns false when checked after get_header() because $wp_query->current_post + 1 = $wp_query->post_count and adding rewind_posts() after the get_header call fixes the problem.

    • I deactivated all plugins and activating NGFB Open Graph+ was the only one to generate this error.
    • It is only a problem with the author archives and not with category archives.

    Having said all that, it's still possible, I guess, that the cause is more complex. Any comment?
    Thanks

    http://wordpress.org/plugins/nextgen-facebook/

  2. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Jon,

    I was using the_post() to get author info etc., which advances the array pointer. For some reason that worked well on several themes I tested.

    I tried using the $post global instead, which appears to be available, so the current DEV version should fix your issue.

    You can download it here: http://downloads.wordpress.org/plugin/nextgen-facebook.zip

    Let me know if that works for you.

    Thanks,

    js.

  3. jon.evans
    Member
    Posted 1 year ago #

    Awesome, that worked just fine.
    Thanks,
    Jon

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic