I'm creating a website where I need to 'subscribe' client Pages to certain categories.
On example.com/client/johnson-co/ show all posts in the categories 'GST', 'Estate' and 'Tax General'.
On example.com/client/smith-co/ show all posts in the categories 'GST', 'Insurance' and 'Personal'.
I'm not at all attached to using Pages if there's a better way :) I do however need the categories 'subscribed' to to be editable using WordPress admin; not hard-coded into the theme.
I've researched and experimented with the following methods to no avail:
- Giving a category multiple parents (currently not possible in WP) - this would let me give category gst a parent of johnson-co and smith-co
- Using query_posts() and including cat=x (as per the codex) - this works but is hard coded and doesn't let someone subscribe a page to categories in the admin.
- Using custom post type (set up using CCTM plugin) so /client/johnson-co/ has checkbox meta fields of GST, Estate, Insurance, Personal etc. This is the closest but I couldn't get the link between what was checked and the categories showing working, and it feels like a bit of an ugly hack.
Would hugely really appreciate any ideas!