I'm wondering if there is a way to (easily) widgetize the category pages for a site.
For example the site might have 5 categories, I'd like to have a widgets (much like home.php might have) for each of the categories with posts/features for that category on it's page. So domain.com/category1 would have a home.php style widgetized page with a grid loop and/or slider specifically for that category's posts; domain.com/category2 would have a widgetized page specifically for category 2 posts/features, etc.
Is this possible?
Yes it is however it does require a fair amount of work.
Hooking the slider in to display different images on each category archive is easy however creating a grid loop for each category archive is a bit of playing around.
The slider can be done with custom functions and conditional tags or by creating widget areas and then using a shortcode.
I just published a post about it which may help.
Code not displaying? Grab it on Github.
I would copy your home.php template and use that for each category.
What theme are you wanting to use?
Volunteer who’s written 1814 tutorials & 3000+ Code Snippets for members – Not For Hire.
Thanks @braddalton I'll give that a whirl over the next couple of days and I'll post back here however it turns out.
I'm planning to use the basic sample child theme and go from there.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!