![]() |
Featured Content - hard code category
Hi
Just wondering how I can hard code the category into the feature scroller? The reason I would like to do this is that I'm using it with the Revolution Music theme as the old feature content breaks with a couple of plugins I need to use, ie. Events Calendar in particular, and the new scroll in Chrome doesn't break with that plugin. Alternatively I need to add the Chrome options code in the functions.php to the Rev Music functions.php. Anyone able to help? Thanks in advance Mat |
Re: Featured Content - hard code category
To hard code the category, simply replace:
Code:
<?php if ($aOptions['featured-cat'] != '') { query_posts('cat=' . $aOptions['featured-cat'] . '&showposts=' . $aOptions['featured-count']); } ?>Code:
<?php query_posts('category_name=yourcategory&showposts=6'); ?> |
Re: Featured Content - hard code category
Thanks Jason. Worked a treat!
|
Re: Featured Content - hard code category
Glad to help... ;)
|
Re: Featured Content - hard code category
And this is the site that it's in use on, http://www.imwiththeband.com/. It's still a bit of a work in progress, has been for the last 2 years I think..haha.
|
Re: Featured Content - hard code category
Looking good... By the way, you might want to edit "coda.slider.js" and move the arrow buttons to a location on your server.
Code:
.before('http://www.press75.com/themehost/ond...croll_left.png') |
| All times are GMT -5. The time now is 01:19 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.