800,000+ WordPress sites are already using MetaSlider!

Show a Slideshow via the WordPress API

There are two registered post types in MetaSlider (ml-slider and ml-slide). This means that you can use the following routes:

  • /wp-json/wp/v2/ml-slide
  • /wp-json/wp/v2/ml-slider

But, before you can access the following routes, you will need to modify show_in_rest value to true. You can do this by adding the following code below to your functions.php:

We hope that this code will be useful, but do not make guarantees. If you need troubleshooting help, or modifications to this code, please contact MetaSlider Pro support.