class.Apply.php breaks multiple loops

Viewing 1 post (of 1 total)
#46704

mleis
Member

Hi,

some time ago I encountered a problem I haven’t been able to nail down until now. A second loop in my WP-theme was suddenly returning wrong posts. I have now realized that reason is found in the class.Apply.php of Download Manager.

add_filter('pre_get_posts', array($this, 'queryTag'));

alters my query as soon as you search for posts with specific tags on the site. I’ve removed the line from the file, and suddenly everything is working again.

I believe Download Manager isn’t meant to alter post queries in templates.

Otherwise it’s an awesome plugin. Thank you for your work.

Markus

Viewing 1 post (of 1 total)

The topic ‘class.Apply.php breaks multiple loops’ is closed to new replies.