Title: [Plugin: Widget Logic] Problem with WL and query_posts
Last modified: August 19, 2016

---

# [Plugin: Widget Logic] Problem with WL and query_posts

 *  [1mansaint](https://wordpress.org/support/users/1mansaint/)
 * (@1mansaint)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-widget-logic-problem-with-wl-and-query_posts/)
 * Hello,
 * I seem to be having a slight problem with wiget logic and query_posts. A few 
   of my page templates have
    `<?php query_posts('category_name=DT-Work'); ?>`
 * Once this is included in the page template widget logic nolonger works.
 * Is there another way i can filter only a specific category on these templete 
   pages, or is there something i’m doing wrong? I’m very stumped!
 * Any help would be much appreciated,
    Thanks
 * Matt
 * Update: If i move the sidebar include before query_posts call, widget logic works.
   Not really sure what is going on.

Viewing 1 replies (of 1 total)

 *  Thread Starter [1mansaint](https://wordpress.org/support/users/1mansaint/)
 * (@1mansaint)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-widget-logic-problem-with-wl-and-query_posts/#post-1053704)
 * Doh! Just found the solution, if anyone has the same problem…
 * [Thread](http://wordpress.org/support/topic/196269?replies=3)
 * [Thread](http://wordpress.org/support/topic/157157?replies=13)
 * Hope that helps,
    Matt

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Widget Logic] Problem with WL and query_posts’ is closed to 
new replies.

## Tags

 * [logic](https://wordpress.org/support/topic-tag/logic/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 1 reply
 * 1 participant
 * Last reply from: [1mansaint](https://wordpress.org/support/users/1mansaint/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-widget-logic-problem-with-wl-and-query_posts/#post-1053704)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
