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: