Display WordPress Popup Based on Custom Post Types

Wonder Popup is a premium WordPress plugin to create lightbox popups that can help you get more newsletter subscribers, promote new products, deliver special offers or show videos to your customers.

This tutorial will guide you how to show the popup only on specified custom post types posts.

There are three steps in this tutorial:

  • Step 1 - Install Wonder Popup
  • Step 2- Create a lightbox popup, notification bar or slide-in
  • Step 3 - Enable the popup on specified custom post types

Step 1 - Install Wonder Popup

First please install the WordPress premium plugin Wonder Popup. You can download the free trial version from the plugin home page, test it, make sure it works for you before upgrading to the commercial version.

Step 2- Create a lightbox popup, notification bar or slide-in

Wonder Popup supports 4 kinds of forms: lightbox popup, notification bar, slide-in and embed.

wordpress popup

The plugin features an easy-to-use and intuitive user interface, you can select the popup from pre-defined templates, define display rules, configure your email service, setup autoresponder, define the action after visitors clicking the action button.

wordpress popup editor

Step 3 - Enable the popup on specified custom post types

To enable the popup on custom post types, in the popup editor, click the Display Rules tab, then go to Page and Device Rules tab.

In the Page Rule section, you can select "On Custom Post Types" option, then select a custom post type.

If you want to display the popup on multiple custom post types, you can click the button "Add Rule" to add a new rule.

wordpress-popup-custom-post-types