Sign Up | Reset your password
← Back to Real Guns

With a spiffy new lightweight trigger in place, it seemed only fair that better trigger function should follow. The work outlined below does not require the services of a gunsmith, but it does require: access to good information (see Part 1 referenced sources), the ability to follow instructions and a good supply of patience. Since parts…

Real Guns is a membership supported publication. Membership offers access to: all current and archived articles, handload data, ballistic calculators, and the Real Guns Image Gallery. Membership is available for $29.95 for twelve months.

Please either Sign inorJoin Real Guns.

function exclude_category_from_search($query) { if ($query->is_search) { $query->set('cat', '-11,-251,-12,-17,-25,-24,-23'); } return $query; } add_filter('pre_get_posts','exclude_category_from_search');