Title: content filter with widget-logic
Last modified: August 19, 2016

---

# content filter with widget-logic

 *  [garyditsch](https://wordpress.org/support/users/garyditsch/)
 * (@garyditsch)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/content-filter-with-widget-logic/)
 * I have installed widget-logic and it appears to work very well, but one thing
   I have not been able to due (likely to my basic php knowledge) is filter a widget’s
   content based upon two different variables, for example:
 * 1. I would like to have a category widget that posts only the recent posts in
   category “x” from author “joe” on joe’s author page.
 * I can get the widget to show all posts from category “x” only on joe’s author
   page, but I am having difficulty limiting it to only joe’s posts in that category.
 * Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/content-filter-with-widget-logic/#post-983005)
 * oo tricky. that’s not really what the filter is for TBH…
 * The widget_content filter is your chance to step in and fiddle with the HTML 
   output by the widget. so it could be possible to remove the text of stuff NOT
   written by joe (if the text says “by joe” delete this link) – possibly leaving
   the widget blank! – but it doesn’t provide a way to calculate alternative text.
   well not easily, and by the time you do, you may as well have written a new widget!
 * sorry, not much help there really. perhaps someone can point you towards a widget
   that does do “list posts in category X by author Y” though.
 *  Thread Starter [garyditsch](https://wordpress.org/support/users/garyditsch/)
 * (@garyditsch)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/content-filter-with-widget-logic/#post-983098)
 * Thanks alan… I’ll keep searching. Plus it is helpful to understand the widget_content
   filter better…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘content filter with widget-logic’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [garyditsch](https://wordpress.org/support/users/garyditsch/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/content-filter-with-widget-logic/#post-983098)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
