Title: PHP code where?
Last modified: August 24, 2016

---

# PHP code where?

 *  Resolved [l4facc](https://wordpress.org/support/users/l4facc/)
 * (@l4facc)
 * [11 years ago](https://wordpress.org/support/topic/php-code-where/)
 * Hello! I am using mystile theme and I am trying to put the slider in the woocommerce
   homepage. My question is: where do I out the php code?
 * Thanks
 * [https://wordpress.org/plugins/woocommerce-products-slider/](https://wordpress.org/plugins/woocommerce-products-slider/)

Viewing 1 replies (of 1 total)

 *  [paratheme](https://wordpress.org/support/users/paratheme/)
 * (@paratheme)
 * [11 years ago](https://wordpress.org/support/topic/php-code-where/#post-6149191)
 * Thanks for your post,
 * short-code should using where you want to display slider. i recommend use following
   style short-code to your page content `[wcps id="1234" ]`
    this could easier 
   way to display slider on your page.
 * The shortcode following style for using theme PHP files
    `<?php echo do_shortcode("[
   wcps id='1234' ]"); ?>`
 * its totally depend on you where you want to display slider on your website.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘PHP code where?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-slider/assets/icon-256x256.png?rev=
   3297751)
 * [Product Slider, Product Grid, Product Masonry](https://wordpress.org/plugins/woocommerce-products-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-slider/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [paratheme](https://wordpress.org/support/users/paratheme/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/php-code-where/#post-6149191)
 * Status: resolved