• Resolved amdh

    (@amdh)


    Hi

    i add categories to my posts without any problem. also the post appears in the category page. but in admin column it shows nothing under the category column. however when i click on edit inline button, the categories will appear. also when i want to show categories in my theme it shows nothing (Uncategorized) with these functions:

    get_the_category()
    the_category()
    get_the_category_list()

    i changed my theme to Twenty Seventeen and there is no category too.

    thanks

    • This topic was modified 6 years, 2 months ago by amdh.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you checked by disabling plugins? Maybe any plugin is conflicting there.

    Thanks

    Thread Starter amdh

    (@amdh)

    i disabled my plugin and problem solved.

    thanks.

    Thread Starter amdh

    (@amdh)

    i used this code in my plugin and the problem was for this code:

    function modify_term_list($terms){
    foreach($terms as $term_index => $term_object){
    if($term_object->term_id === 83){
    unset($terms[$term_index]);
    return $terms;
    }
    }
    }
    add_filter(‘get_the_terms’, ‘modify_term_list’, 1);

    how can i change the code???

    • This reply was modified 6 years, 2 months ago by amdh.

    After foreach loop(after closing braces) return $terms , and if it is still not working just check whether it is able to get the value in loop.

    Thread Starter amdh

    (@amdh)

    thanks a lot.
    resolved.

    Great ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘category problem’ is closed to new replies.