Separated blog sections for members and non-members
authorLaury GvR <laury@gaslightmedia.com>
Mon, 17 Jul 2017 17:52:36 +0000 (13:52 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 17 Jul 2017 17:52:36 +0000 (13:52 -0400)
commita64a8018a6137ccab3a531650765287a231ca51e
tree11f315b4f12bfcf33183e0799ccd995227b841c6
parentb2587f439ab95ce7ab7befd469f6b60b0db4d809
Separated blog sections for members and non-members

Instead of using categories to separate the two blog sections we've
 decided to use a custom post type (member_post). I was able to
 reuse some of the custom post declaration that Steve put together
 for Trout Creek. The client can add member posts through an admin
 menu just below the regular posts menu, and this has its own set
 of categories that won't be visible to non-members. This also
 means Categories can be displayed again, so these are currently
 not hidden from the sidebar (but can be if still desired.)

Single posts, archives, home, and categories listings are all
 separated based on whether they are in the member section, and
 each shows a different sidebar. This sidebar has items based on
 whether or not one is in the member section. The search
 functionality also had to be separated, so that a Member search
 would not produce a regular Post result, and vice versa. The
 Search template therefore also had to be customized.
20 files changed:
archive.php
css/app.css
functions.php
glm-members-only-template.php
home.php
parts/blog-addthis-wrapper.php [new file with mode: 0644]
parts/blog-archive-content.php
parts/blog-sidebar-members-only.php
parts/blog-sidebar-r.php
parts/blog-single-content.php [new file with mode: 0644]
parts/client-info-footer.php
parts/glm-members-only-blog-feed.php [new file with mode: 0644]
parts/members-sidebar.php
parts/search-content.php [new file with mode: 0644]
scss/_blog.scss
scss/_copyright.scss
scss/_main.scss
scss/plugins/_glm-member-db.scss
search.php
single.php