Reset WP_Query in arras_document_description() #75

mattyrob opened this Issue Oct 5, 2012 · 0 comments

1 participant


The above named function is called from the library/template.php file, it creates a call to have_posts() and essentially pushes WordPress into "the_loop()" earlier that would normally be expected. This can have unexpected consequences in many other areas.

One suggestion would be to fine an alternative way of getting the code you need but a quicker interim fix might be to reset the WordPress query once this function finishes by adding:


into the function, either at the end or just after the have_posts() loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment