Using Widget Logic I'm looking to get a sidebar widget to simply display on any publish with a specific author.

I've discovered the is_author() logic, but this is only for Archive pages not posts. I discovered the next code which works for posts:

global $publish return($publish->post_author==2)

nevertheless it also shows the widget around the home page - which I'm not going.

So I am trying to produce a mixture of this code and !is_front_page() however i can't obtain the two to operate together.

Can anybody mix this properly for me personally or possess a better solution?

Thanks

Take advantage of

Please make use of this widget logic condition:

global $post; return (!is_home() && !is_front_page() && $post->post_author == 2);

Widget Logic is really a helpful wordpress plugin, btw. Thanks!