WordPress 3.2.1 and Slimmity simplefolio theme

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.

  1. Thank you so much, I really appreciate your posting this as it saved me a lot of grief. When I get my site completed I will post a link to this article.

    Reply
  2. Thanks so much for this. Trying to figure stuff like this out drives me up a wall so often. Much appreciated.

    And this is one of the best WordPress themes I’ve ever seen. This site looks so sleek. Incredible design.

    Reply

Leave a Comment.