Today, I happened to upgrade my website from version 3.0 to latest version by using wordpress’s Auto upgrade procedure. I have clicked on auto upgrade and it went quite well. The site was functioning very smoothly. Suddenly i got an email from one of my reader’s that the home page slider is broken also there are some more issues.
I had various doubts but did not thought of wordpress upgrade would have caused this. I have turned off some plugins to check if there is any conflicts happening. I tried de-registering wordpress JQuery but the problem remains. Then i looked into some php files of the theme.
I checked the file named “template-home.php” and went to the part of it where it was fetching data from database. Finally came to know that WordPress has some changes in their data fetching system to which i need to match my theme.
I have modified my theme like this to match the upgraded wordpress,
- Open “template-home.php” in any of your favorite editor.
- Look for the following lines
$category = get_option('sf_portfolio_category'); - Change it to
$category = sf_get_category_id(get_option('sf_portfolio_category')); - Look for the following lines
$my_query = new WP_Query('showposts='.$slide_count.'&category_name='.$category); - Change it to
$my_query = new WP_Query('showposts='.$slide_count.'&cat='.$category);
The slider is back on its feet and rolling like before. Hope some of these research would help some theme users out there.


I’ve been fighting w/ this stupid home page for months and FINALLY you have solved my problems. Thanks so much!
You are welcome buddy..
Thanks for making a fix! really hadnt had the time to come across this kind of stuff
You are welcome Omar…
[...] SimpleFolio community thanks Samir Kamble for his fixes to repair the SimpleFolio 1.5 slider, which broke in WordPress [...]
Thank you very much for these edits! This is really a community-supported theme. You can see my implementation here at http://rabbitsoftware.com. I have some of modifications of it detailed on my blog.
Beautiful modifications done at your website…
THANK YOU, THANK YOU! I had been avoiding upgrading word press because I KNEW it would break something. And to my dismay, it was the slider. I have no programming skills at all and didn’t know where to begin. Thank you so much for posting this quick and easy fix.
Completely my pleasure sir!!
Very helpful. Saved me hours of trying to fix this silly thing for a client.