Bug fix: Subcat not working
-
Not sure if fixed or just a problem for me but I think I found a bug. Subcats have never worked for us, upon investigation I found the following was the problem.
Find: ua-category-feature/ua-category-feature.php
$auc_cterm = term_exists($_POST['ua_auction_subcategory'], 'ua-auction-category', $_POST['ua_auction_category']);
Replace: ua-category-feature/ua-category-feature.php
$auc_cterm = term_exists($_POST['ua_auction_subcategory'], 'ua-auction-category', $auc_term['term_id']);
The subcat was not found as the parent was being defined by its name from the select drop down not its term_id which was looked up just prior to the line of code above.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug fix: Subcat not working’ is closed to new replies.