WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm moving a blog with a decent amount of traffic and some good google juice. I want to try and proactively fix links that will change. How would I loop through all my categories and tags on my current blog and generate a list of all the urls so I can check where they would map to....


share|improve this question
Why would the links change? Are you changing the domain name? Are you moving to or from WordPress? If your just changing hosts or moving to new server no links should change. – Chris_O May 3 '12 at 8:44

Take a look at my plugin T5 All URIs. It prints all current URIs for posts and terms.

From function print_term_uris():

    $terms = get_terms(
        array (
            'hide_empty' => FALSE,
            'get' => 'all'

    foreach ( $terms as $term )
        print "\n" . get_term_link( $term );

But if you keep the same permalink settings your URIs will not change, just the host.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.