Jump to content
Sign in to follow this  
leografie

Setting the Feature-Set on Category (or Tag) Pages

Recommended Posts

leografie

I'm looking for a way to be able to specify the feature set to show on a specific category page. Currently I am only able to specify one feature-set for all category pages through "Templates->Page Templates/Content Area->Category and "Special->Category Page". I've been experimenting with setting the global options using the above (e.g. stage height) and editing the functions.php file in the pagelines-customize plugin, but with no success, not being a php expert. What I'm looking for is something like: add_action('loop_start', 'add_feature_to_category'); function add_feature_to_category(){ ?> <?php if (is_category('xyz')) : ?> // feature-set-id or postid = abc // <?php endif; ?> <?php } So that when the category page loads it uses the feature-set supplied in the functions.php file. It would be good to be able to both determine the full-width (page template) or content-width (content area) features if different. If this process is possible it could then be applied to banners & boxes. Any suggestions? It would be great to see a pagelines plugin that allowed a user to specify the feature set in Posts->Categories->Edit category.

Share this post


Link to post
Share on other sites
Rob
I use a workaround, but thank you for the suggestion that is being passed along to the developers. The work around I use is creating a static category page where I can select any options I please, then embedding Special Recent Posts, a fantastic plugin that will emulate the postloop if added via shortcode to the content area. It may be setup so that it pulls only posts from a single category, making it ideal for the postloop part of a category page. With a static page, you can select any feature or box set you please.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
leografie
Thanks for the tip on the plugin, I'll give SRP a try. I have tried this type of solution with the plugin List Category Posts which works in a similar way, only have had some issues with breadcrumbs not being maintained.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×