Jump to content
Sign in to follow this  
bailey1769

Add feature slider to category pages - whitehouse

Recommended Posts

bailey1769

How might I add the feature slider to what I call a category page? Or rather, how do I make a category page (which displays all of my post within a certain category) look like a "Feature Page - Page Content" with my category post directly underneath?

Share this post


Link to post
Share on other sites
cmunns

Start by adding a conditional to template_posts.php ... `if(VPRO && (is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || (is_home() && pagelines('featureblog')))) $featureslide_template = true;` will become `if(VPRO && (is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || is_category() || (is_home() && pagelines('featureblog')))) $featureslide_template = true;` If it's just a certain category then you would put the ID within there as well like is_category('12)

Share this post


Link to post
Share on other sites
bailey1769

Great! That worked but, now this page only shows one feature although it is set up to show at least three. What code do I need to change for it to scroll thorough all of my features automatically? www.greenriveracademy.com Thanks!

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  

×