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' );