---
title: How to Add Slideshows to Your Site
description: "In this guide, we'll explain some of the many ways that you can add a MetaSlider slideshow to your site. You have many options for how and where to display the slideshow. --- ## Option #1. Gutenberg Block If you…"
url: "https://www.metaslider.com/docs/how-to-add-metaslider/"
updated: "2026-11-03"
category: Get Started with MetaSlider Gallery
---

# How to Add Slideshows to Your Site

In this guide, we'll explain some of the many ways that you can add a MetaSlider slideshow to your site. You have many options for how and where to display the slideshow.

---

## Option #1. Gutenberg Block

If you use the new block editor in WordPress, you can search for and use the "MetaSlider" blocks as in the image below. After choosing this block, you will be asked to select the name of the slideshow or gallery you want to use.

![MetaSlider Gutenberg block](https://www.metaslider.com/wp-content/uploads/2023/01/metaslider-block.png)

You will be able to see a live preview of your slideshow inside the post editing screen. This screenshot below shows the MetaSlider Slideshow block.

![MetaSlider Gutenberg block](https://www.metaslider.com/wp-content/uploads/2023/01/block-inserted-1024x500.png)

---

## Option #2. Shortcode

The shortcode for each slideshow is available in the right sidebar when you're in the "Slideshows" or "Galleries" screens. In this image below, you can see that the shortcode has an ID of 17.

![MetaSlider shortcode](https://www.metaslider.com/wp-content/uploads/2023/09/slideshow-id-1024x266.png)

This next screenshot shows the shortcode placed inside the new block editor.

![MetaSlider shortcode](https://www.metaslider.com/wp-content/uploads/2023/01/shortcode-1024x415.png)

One advantage of the shortcode option is that it can be used in other situations, such as the "Classic Editor" or pagebuilders. In the image below, we've added the shortcode to the old WordPress editor.

![MetaSlider shortcode added](https://www.metaslider.com/wp-content/uploads/2023/01/classic-editor-shortcode-1024x339.png)

In this next example, we've used the shortcode option to add MetaSlider to a site using Elementor:

![MetaSlider elementor shortcode](https://www.metaslider.com/wp-content/uploads/2023/01/elementor.png)

---

## Option #3. PHP

It is possible to add your slideshow directly into your theme's PHP files. We recommend using the shortcode. [Hostinger have a detailed guide to add a Metaslider shortcode to your site using PHP](https://www.hostinger.com/tutorials/wordpress-do_shortcode).

Here's an example of how to include shortcode in your PHP files:

```
<?php echo do_shortcode( '[metaslider id="7"]' ); ?>
```
