Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix 4.9 get_category_link() not working

Discussion in 'Misc WordPress Requests' started by priprod, Nov 16, 2017.

  1. priprod


    4.9 get_category_link() not working, by priprod

    Hey All, I just upgraded to 4.9 and now my custom function for displaying links to categories isn’t working. Everything else is working except get_category_link. Here’s my code:

    $categories = get_terms('product_cat', array('parent' => $id));
    //add to the sublist
    foreach($categories as $c){
    $term_id = (int) $c->term_id;
    $link = get_category_link($term_id);

    Were there any updates to it that I’m not aware of?

    4.9 get_category_link() not working

Share This Page

Monarch Social Sharing Plugin