Hi Aaron,
Thanks for the reply.
I’ve pasted the code here: https://pastebin.com/n945cq4y
I’ve changed a few instances of category to locations_category, but think the problem likely lies with this section, as I’m not sure how to edit it for custom taxonomies:
`// Check to see if expiration category is enabled and set – otherwise, proceed as normal
$catEnabled = get_option(‘expirationdateCategory’);
$cat = get_post_meta($a->post_id,’_expiration-date-category’);
if (($catEnabled === false || $catEnabled == 1) && (isset($cat) && !empty($cat[0]))) {
wp_update_post(array(‘ID’ => $a->post_id, ‘post_category’ => $cat[0]));`
Any help with be much appreciated!