How to Create a WordPress Slider for Custom Post Types
Do you want to make sliders for custom post types in WordPress? Sometimes you may need to create sliders from custom post types that you have created. In this article, we will share how to create a WordPress slider for custom post types.
By default, WordPress does not allow you to create image sliders for custom post types. You’ll need to install the Soliloquy slider plugin accomplish this.
To create a WordPress slider for custom post types, you’ll need to follow these 6 steps:
- Step 1. Install and activate Soliloquy Slider plugin
- Step 2. Install and activate Soliloquy’s Featured Content Addon
- Step 3. Add a featured content slider in Soliloquy
- Step 4. Select your custom post types
- Step 5. Publish the image slider
- Step 6. Add the shortcode to a post or page
By the end of this tutorial, you’ll have a slider that looks like this, featuring content from your custom post types:
Ready to get started? Let’s go!
Step 1: Install and Activate Soliloquy Slider Plugin
First thing you need to do is to install and activate Soliloquy WordPress Slider plugin. You can learn more about how to install Soliloquy here.
Step 2: Install and Activate Featured Content Addon
Upon activation of the plugin, you need to go to Soliloquy » Addons from your WordPress backend. Install and activate the Featured Content Addon.
You must have Developer or Master license to access this addon. For more information, check out this guide on upgrading your license in Soliloquy.
Step 3: Add a Featured Content Slider in Soliloquy
Next you’ll need to add a featured content slider. To add a featured content slider, you can go to Soliloquy » Add New. Then, go to the External Slider tab and select Featured Content.
Step 4: Select your custom post types
Next, select your custom post types that you want to include in your slider. In the Slider tab, you will see the settings to select your custom post type, taxonomy terms and more.
In the Select Your Post Type(s) field, choose the custom post types that you want to include.
Create a Featured Content Slider With a Taxonomy Term
Want your slider to show only your best content? You can turn this same setup into a featured content slider — no extra addons needed.
A featured content slider pulls in hand-picked posts, pages, or events instead of everything from a post type. It’s an easy way to spotlight your top content anywhere on your site.
In the Slider tab, look just below the post type settings for the taxonomy options. Pick a category or tag, and Soliloquy will only include content from that term.
For example, you could add your best articles to a category called Featured and select it here. Your slider will then feature just those posts.
Happy with your selection? You’re ready to publish. And if you’d like to feature date-based content, check out our guide on how to create an event slider in WordPress.
Step 5: Publish the Image Slider
Once you are done adding your post types and settings for your WordPress slider, go ahead and click on the Publish button.
You need to copy the shortcode from the Soliloquy Slider Code widget under the Publish widget (you’ll need this for the next step).
Step 6: Add the Image Slider to Post/Page
Simply go to Post » Add New or edit an existing post where you want to add the image slider. In the visual editor, go ahead and paste the shortcode.
Make sure to hit the Update button. Now you have an image slider for your custom post types!
That’s all. We hope this article has helped you to learn how to create a WordPress slider for custom post types. You may also want to check out our guide on how to create a responsive carousel slider in WordPress.
If you like this article, then please follow us on Facebook and Twitter for more free tutorials.