Step 6 Creating the Shortcode

Our slider is not fully functional yet, as it isn't sliding our posts, but it would be good if we could see if it displays our testimonials correctly at least. So let's add a shortcode so we can see what we are displaying!

As you can see, adding shortcode support is really easy. Now if write [client testimonials] in our page or posts we can see the client testimonials, as you can see in the image (I added some testimonials, so we have something to display).

Step 7 Making the Testimonials Slide

Now that we are sure that our testimonials are displaying correctly let's make them slide! Do you remember the script.js file that we added to the head of our page? Now we will create it! So, if you have not already done that, create an empty file called script.js in the js folder in the plugin directory and add the following code:

I didn't want pagination for the sliders and put it to autoplay, so it's discretely sliding at the top or where you want it to. If you want to use extra features of SlideJS you can easily do that from reading its documentation.