From 1f99ccafcc25a0b0fc519962dc3181924685a852 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Thu, 28 May 2015 11:50:03 +0100 Subject: [PATCH] Show dead sites on single-site map and in download data --- includes/map.php | 1 + includes/sites.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/map.php b/includes/map.php index 2a7b046..e4e4cfc 100644 --- a/includes/map.php +++ b/includes/map.php @@ -12,6 +12,7 @@ function talhyperlocal_map_shortcode( $id ) { if ( $id ) { $options['p'] = $id; + $options['post_status'] = array( 'publish', 'archive' ); } diff --git a/includes/sites.php b/includes/sites.php index d45724e..aa88581 100644 --- a/includes/sites.php +++ b/includes/sites.php @@ -8,7 +8,7 @@ require_once( '../../../../wp-load.php' ); $options = array( 'post_type' => 'site', 'posts_per_page' => -1, // -1 for all posts - 'post_status' => 'publish', + 'post_status' => array( 'publish', 'archive' ), 'orderby' => 'title', 'order' => 'ASC' );