Help needed with query please

Hi guys,

I’m working on a specific template for a category page within wordpress. I have a global function defined that retrieves the category id.`$ps_catid = get_query_var(‘cat’);’

What i’m trying to do is run a query that shows only posts that are in this current category ($ps_catid) but not also in the category of id=46. Some of my posts are in multiple categories you see.

Can anyone help produce the code that will show all posts in the current category but not ones also in 46?

I’ve tried having a go at this on my own but keep getting the dreaded white screen. Any help is much appreciated. Thanks

A white screen means there’s a PHP error. The first step would be to turn on PHP error messages in your wp-config.php file, as indicated here:

define('WP_DEBUG', true);