Title: [Plugin: iSlidex] Wrong category in PHP
Last modified: August 21, 2016

---

# [Plugin: iSlidex] Wrong category in PHP

 *  [maurixx](https://wordpress.org/support/users/maurixx/)
 * (@maurixx)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/plugin-islidex-wrong-category-in-php/)
 * Hi There,
    I’m using this code to show different slideshows for each category
   page. The code seems OK but only the first slideshow is displayed for all. have
   you any suggestion ?
 *     ```
       <?php
       $categoria= get_cat_id( single_cat_title("",false) );
       echo $categoria;
       switch ($categoria)
       {
       case "4687":
         show_customislidex(4687,3,450,200,3, true);
         break;
       case "4688":
         show_customislidex(4688,3,450,200,3, true);
         break;
       case "4689":
         show_customislidex(4689,3,450,200,3, true);
         break;
       case "4690":
         show_customislidex(4690,3,450,200,3, true);
         break;
       case "4691":
         show_customislidex(4691,3,450,200,3, true);
         break;
       default:
         echo "categorie sbagliate!";
       }
       ?>
       ```
   
 * here isi the link to the site :[http://www.newscamp.info/it/category/mercatino/mansardati-mercatino/](http://www.newscamp.info/it/category/mercatino/mansardati-mercatino/)
 * THX a lot
    Maurizio
 * [http://wordpress.org/extend/plugins/islidex/](http://wordpress.org/extend/plugins/islidex/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [maurixx](https://wordpress.org/support/users/maurixx/)
 * (@maurixx)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/plugin-islidex-wrong-category-in-php/#post-3806329)
 * I noted that is not showed the first but the generic slideshow … am I doing something
   wrong ?
 * Maurizio

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: iSlidex] Wrong category in PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/islidex.svg)
 * [iSlidex](https://wordpress.org/plugins/islidex/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/islidex/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/islidex/)
 * [Active Topics](https://wordpress.org/support/plugin/islidex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/islidex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/islidex/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [maurixx](https://wordpress.org/support/users/maurixx/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/plugin-islidex-wrong-category-in-php/#post-3806329)
 * Status: not resolved