Created
September 27, 2011 20:50
-
-
Save micahwave/1246208 to your computer and use it in GitHub Desktop.
Get posts legacy url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$urls = array(); | |
$posts = get_posts( array('posts_per_page' => -1, 'time_post_format' => 'time-post-format-special') ); | |
foreach( $posts as $post ) { | |
$urls[] = esc_url ( get_post_meta( $post->ID, 'time_legacy_url', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment