Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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....

Thanks!

share|improve this question
2  
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

1 Answer 1

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(
        get_taxonomies(),
        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

 
discard

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.