This topic contains 3 reply and 2 voices, and was last updated by Tareq Hasan 6 years, 6 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
January 6, 2014 at 7:22 pm 14176
Tareq Hasan Hell, I have multiple categories and sub categories, i list them as a dropdown so a user can select a category. But the problem is when a user select a sub-cat it is not selecting the parent categories in backend. It is breaking my some functions, is there any tweak or code to solve this issue? Thanks
January 6, 2014 at 9:07 pm 14182
Tareq Hasan Tareq Hasan

Try this

January 6, 2014 at 9:55 pm 14184
saku4388 saku4388


But you code is not working.

Sorry forget to mentioned that i m using custom taxonomy called “sub-cats”

Could you please make the code for custom tax

January 7, 2014 at 1:54 am 14193
Tareq Hasan Tareq Hasan

Change wp_set_object_terms functions third parameter to your custom taxonomy. Also $_POST['your_custom_taxonomy_name'].

Viewing 3 Posts - 1 through 3 (of 3 total)