How to get a list of all categories and posts with teaser content
-
I am setting up a simple customner training site for a friend, using the free Membership 2 plugin.
This is a brand new wp installation in a subdirectory at my friend’s site, and will be used to
provide training for his clients.
His company have some 50+ active clients using one or more of his software tools.
Between all his software tools, he have some 100+ modules that can be enabled/disabled per client.
So his idea would be to create one ‘membership level’ for each client, and all employees from that client get their own login for that membership level.
He would then create one category for each of the 100+ modules, and put training material for that module into that module specific category.
He would then enable the ‘Category protection’ addon, and for each client, he will check off the modules that client have access to.
Each client should only have full access to the modules they have access to.
Modules in the 100+ modules categories are all very generic, and can be used for all clients.
Most of the clients also have special customization or tailor-made instructions specific to that client, and only that client should see that content.
In addition, my friend also would like that all clients should be able to see a list of ALL modules, but only some teaser content on the modules they do not have access to, encouraging them to request access to them.
I have managed to get all his requirements set up, apart from the last part – all clients can see all modules, but only a short ‘teaser’ about the modules they do not have access to.
I used the built-in redirect addon to send everyone to a special ‘home page’.
On that home page, I used the [ms-protect-content] tag to group special client-only info.
That page became really long and ugly, and I see problems coming when he needs to add a new client and a new [ms-protect-content] section, but that was the only way I found how to accomplish that.
Ideally, I would like to have a special ‘home page’ for each client, or a special home page for each membership level.
I used the ‘List category posts’ plugin on the home page to list all modules activated for that client, and that works just fine.
All clients will be added manually from the backend, so there is no need for a registration page, accounts page, payment page or other special pages.
My question is how to accomplish the goal of listing ALL available modules, but only show teaser content to the modules the clients do not have aces to.
How would you recommend I set up Membership2 to accomplish my goal?
I am open for all suggestions, as the site is not live yet, and this is my first attempt at setting up a site using Membership2.
Rune
- The topic ‘How to get a list of all categories and posts with teaser content’ is closed to new replies.