• Resolved remus

    (@remus)


    Hello,

    It’s very easy to output the URL for posts with get_permalink($post->ID) but what if we need to output the URL of categories?

    I’m thinking about something like

    foreach (get_categories() as $cat) {
    echo some_function($cat->cat_ID);
    }

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter remus

    (@remus)

    I think I finally managed to find this out by myself. It was by mistake, looking for something else, of course:

    get_category_link($category->cat_ID)

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Categories permalinks, how to …’ is closed to new replies.