Skip to content

Instantly share code, notes, and snippets.

@micahwave
Created September 27, 2011 20:50
Show Gist options
  • Save micahwave/1246208 to your computer and use it in GitHub Desktop.
Save micahwave/1246208 to your computer and use it in GitHub Desktop.
Get posts legacy url
$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