Title: uploading slider with code?
Last modified: July 6, 2021

---

# uploading slider with code?

 *  Resolved [oehqoehfo](https://wordpress.org/support/users/oehqoehfo/)
 * (@oehqoehfo)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/uploading-slider-with-code/)
 * Hi, I know I can upload slide to pages just by copying [slide-anything id=”283″]
   and paste it to gutenberg editor page.
    But what if I want to upload slider to
   all pages and the location of slide should be outside of <main id=”primary”></
   main>? I thought then slider should be uploaded by editing php code. I made my
   functions.php so sponsors.php should be called on all pages and algorithm of 
   my sponsor slide should be coded in sponsors.php but I don’t know how to do that
   🙁 As pasting [slide-anything id=”283″] this into gutenberg editor allows to 
   upload slide, I thought <p>[slide-anything id=”283″]</p> code should also work
   in php file but it didn’t work. Please can you help me?

Viewing 1 replies (of 1 total)

 *  Thread Starter [oehqoehfo](https://wordpress.org/support/users/oehqoehfo/)
 * (@oehqoehfo)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/uploading-slider-with-code/#post-14632995)
 * I solved this issue. Found wordpress has a function which is called do_shortcode.

Viewing 1 replies (of 1 total)

The topic ‘uploading slider with code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slide-anything.svg)
 * [Slide Anything - Responsive Content / HTML Slider and Carousel](https://wordpress.org/plugins/slide-anything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slide-anything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slide-anything/)
 * [Active Topics](https://wordpress.org/support/plugin/slide-anything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slide-anything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slide-anything/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [oehqoehfo](https://wordpress.org/support/users/oehqoehfo/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/uploading-slider-with-code/#post-14632995)
 * Status: resolved