Browse Source

Catch more warnings

master
Adrian Short 9 years ago
parent
commit
a13f0fbb7b
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      includes/sites.php

+ 5
- 2
includes/sites.php View File

@@ -24,17 +24,20 @@ if ( $query->have_posts() ) :
// party_affiliation // party_affiliation
// hyperlocal_group_id // hyperlocal_group_id


if ( isset( $meta['feed_url'] ) ) $feed_url = $meta['feed_url'][0];
if ( isset( $meta['area_covered'] ) ) $area_covered = html_entity_decode( $meta['area_covered'][0] );

$row = array( $row = array(
'title' => html_entity_decode( get_the_title() ), 'title' => html_entity_decode( get_the_title() ),
'permalink' => get_permalink(), 'permalink' => get_permalink(),
'url' => $meta['url'][0], 'url' => $meta['url'][0],
'feed_url' => $meta['feed_url'][0],
'feed_url' => $feed_url,
'date_created' => get_the_date("c"), 'date_created' => get_the_date("c"),
'date_modified' => get_the_modified_date("c"), 'date_modified' => get_the_modified_date("c"),
'lat' => (float)$meta['geo_latitude'][0], 'lat' => (float)$meta['geo_latitude'][0],
'lon' => (float)$meta['geo_longitude'][0], 'lon' => (float)$meta['geo_longitude'][0],
'radius_miles' => (float)$meta['distance_covered_miles'][0], 'radius_miles' => (float)$meta['distance_covered_miles'][0],
'area_covered' => html_entity_decode( $meta['area_covered'][0] ),
'area_covered' => $area_covered,
'body' => get_the_content(), 'body' => get_the_content(),
'country' => tax_first_name( get_the_ID(), 'countries' ), 'country' => tax_first_name( get_the_ID(), 'countries' ),
'council' => tax_first_name( get_the_ID(), 'councils' ), 'council' => tax_first_name( get_the_ID(), 'councils' ),


Loading…
Cancel
Save