1
Discussion & Troubleshooting / Re: Exclude Category from New Images
« on: August 06, 2021, 07:25:52 PM »
I didn't manage to exclude categories with the above solutions, so I did this:
In the Search.php
Find this:
AND c.cat_id = i.cat_id $cat_id_sql
and replace it with this:
AND c.cat_id = i.cat_id AND i.cat_id NOT IN (1,2,3)
where the 1,2,3 are the categories you want to exclude from the "new images" results.
This is a very easy solution and works great!
In the Search.php
Find this:
AND c.cat_id = i.cat_id $cat_id_sql
and replace it with this:
AND c.cat_id = i.cat_id AND i.cat_id NOT IN (1,2,3)
where the 1,2,3 are the categories you want to exclude from the "new images" results.
This is a very easy solution and works great!