• 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)
  • 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

    (@garyditsch)

    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.