Support » Plugin: Easy Modal » Easy modal on custom post types

  • Resolved fireleaf

    (@fireleaf)


    Hi,
    I have an issue to get the modal working on custom post types , they are called “portfolio items” in my theme. I have contacted the theme developer already and he mentioned to look if I can turn them on in the settings on the top of the posts page. There was not an option.

    After contacting support a second time they suggested to contact the plugins developer regarding this issue.

    How can I make it possible to show the “meta-box” for the modals on custom posts?

    Best regards,

    Darneson

    https://wordpress.org/plugins/easy-modal/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    You can add custom post types using a filter like this.

    add_filter('emodal_post_types', 'my_custom_post_types_for_emodal');
    function my_custom_post_types_for_emodal($post_types)
    {
        $post_types[] = 'portfolio-items';
        return $post_types;
    }
    Thread Starter fireleaf

    (@fireleaf)

    Hi there,

    thanks for the code and your reply.
    Just to confirm that this worked fine for me 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Easy modal on custom post types’ is closed to new replies.