From 5133fa44c153f7c532b45e70b589c61848b186f6 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Tue, 21 Apr 2015 16:45:25 +0100 Subject: [PATCH] Output custom field `url` as well as the permalink. Fix #7 --- includes/sites.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/sites.php b/includes/sites.php index 8532eee..6a27a07 100644 --- a/includes/sites.php +++ b/includes/sites.php @@ -26,7 +26,8 @@ if ( $query->have_posts() ) : $row = array( 'title' => get_the_title(), - 'url' => get_permalink(), + 'permalink' => get_permalink(), + 'url' => $meta['url'][0], 'feed_url' => $meta['feed_url'][0], 'date_created' => get_the_date("c"), 'date_modified' => get_the_modified_date("c"),