How to make sections of a site as subsites?
-
I what to do something that is not common and cannot find any hints that would lead me to right direction.
I want to have a blog with few sections that should act almost like independent sub-sites.
Actual content should be shared among sections but with option that user can select one section and while he is within section he sees content filtered for that section.
My idea is to introduce custom taxonomy for sections, so for main site, all posts are displayed but for section only posts that are assigned to that section are displayed (same post may be assigned to several sections).
What should happen when user selects section:
– templates should be loaded based on section info, so visual looks of the section may be different from main site.
– query var for the section should be set so that it could be used for altering content based on that value
– queries for posts/archives should follow section info to filter out content that does not belong to section.
– all urls on page should contain section info so that user stays within section as long as he does not select different sectionAt first sight this seems like multisite but it is not. Posts and some other content is shared among sub-sites so everything should stay within same site.
Main issue I see is generating URLS. I would like to have url of the site in form https://www.domain.com/section/rest-of-the-url but I cannot find a way to insert section part in every single internal url on the site and fix all already created rewrite rules to comply to section part.
As I am working on non-commerical site, I have no budget so I prefer nonpaying solution even if it means i have to do programming.
- The topic ‘How to make sections of a site as subsites?’ is closed to new replies.