From: Laury GvR Date: Mon, 21 Aug 2017 16:22:51 +0000 (-0400) Subject: Member blog sections now visible to the public eye X-Git-Tag: v1.0.12^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=78021588bdbc228cd562d6e5542be33e9dd9bdc8;p=WP-Themes%2Ftruenorthgolf.git Member blog sections now visible to the public eye Client wants Member Posts to be visible to the public. Edited archive, search, single and archive to no longer lock out public viewing but still have the Members Home top-bar if logged in. --- diff --git a/archive.php b/archive.php index b726995..89503e2 100644 --- a/archive.php +++ b/archive.php @@ -10,19 +10,22 @@ $category = get_category( get_query_var( 'cat' ) ); } ?> - slug == 'members-only' ) || ( ( isset( $_GET["post_type"] ) ) && ( "member_post" == $_GET["post_type"] ) ) ) { ?> - + slug == 'members-only' ) + || ( ( isset( $_GET["post_type"] ) ) && ( "member_post" == $_GET["post_type"] ) ) + ) { ?> +
- + + +
- - - - + +
diff --git a/parts/glm-members-only-blog-feed.php b/parts/glm-members-only-blog-feed.php index 0a8bf7d..916550d 100644 --- a/parts/glm-members-only-blog-feed.php +++ b/parts/glm-members-only-blog-feed.php @@ -1,33 +1,27 @@ - '1', 'post_status' => 'publish', 'post_type' => 'member_post' ); $lastposts = get_posts( $args ); if ($lastposts) { ?> - -
-
- - -
- ID, 'blog-feed-front'); ?> - -
- -
-
- -
- -

-

ID); ?>

-

+ diff --git a/search.php b/search.php index 161e354..0508dde 100644 --- a/search.php +++ b/search.php @@ -5,15 +5,13 @@
- -
+
+ - -
- - - - + + +
+
diff --git a/single.php b/single.php index 2e00e89..066a793 100644 --- a/single.php +++ b/single.php @@ -4,17 +4,15 @@
- +
-
- - - -
- - - + + + +
+