Home Forums Plugin Support WP User Frontend Pro Child Cat Not Selecting The Parent Category

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14176

    saku4388
    Participant
    Post count: 23

    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

    #14182

    Tareq Hasan
    Keymaster
    Post count: 2831
    #14184

    saku4388
    Participant
    Post count: 23

    Thanks,

    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

    #14193

    Tareq Hasan
    Keymaster
    Post count: 2831

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

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Child Cat Not Selecting The Parent Category’ is closed to new replies.