How to get the url to tag & category base set by the user?

You really shouldn’t need this, as you should be outputting the URLs via the API: get_tag_link, get_category_link, get_term_link.

However, for the sake of answering the question, they’re stored in options:

get_option( 'tag_base' );
get_option( 'category_base' );

Leave a Comment