29

WordPress 3.2.1 and Slimmity simplefolio theme

Posted May 14th, 2011 in Wordpress, Wordpress hacks by Samir Kamble

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,

  1. Open “template-home.php” in any of your favorite editor.
  2. Look for the following lines
    $category = get_option('sf_portfolio_category');
  3. Change it to
    $category = sf_get_category_id(get_option('sf_portfolio_category'));
  4. Look for the following lines
    $my_query = new WP_Query('showposts='.$slide_count.'&category_name='.$category);
  5. 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.

29 Responses so far.

  1. Chad says:

    I had used this fixed in the past and it worked great.

    You have any idea on what the issue is with the slider in WordPress 3.8 though?

    It seems to be broken again.

    See: http://www.excelsiorcreations.com/

    • Samir Kamble says:

      Need to check I haven’t yet upgraded my wordpress to 3.8. Thanks for notifying though…

    • marleen says:

      I’m having the same problem after upgrading to wordpress 3.8: my slider disappeared.
      template-home.php looks like suggested for earlier updates.

      how to fix this ?

      • Samir Kamble says:

        Hello Marleen,

        I am still looking for solution. I will update here if I found any solution.

        For time being I would suggest using some plugin for slider or else use a static image as I did for my own website.

        • marleen says:

          ok, thanks.
          i’ll wait for that.
          sorry for my double reply, it didn’t show at first.

          i have noticed also that the simplefolio submenu’s don’t work on android.
          do you have suggestions for fixing that ?

    • Vince Juson says:

      same problem here. just upgraded to wp 3.8.

  2. Lucas K. says:

    I’ve been fighting w/ this stupid home page for months and FINALLY you have solved my problems. Thanks so much!

  3. Omar says:

    Thanks for making a fix! really hadnt had the time to come across this kind of stuff

  4. [...] SimpleFolio community thanks Samir Kamble for his fixes to repair the SimpleFolio 1.5 slider, which broke in WordPress [...]

  5. Opally says:

    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.

  6. Anna says:

    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.

  7. Jordan says:

    Very helpful. Saved me hours of trying to fix this silly thing for a client.

Leave a Reply