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

    (@danieliser)

    Ahh good question. You can do this manually for the moment, but I am adding in archive support to the options.

    To do this you want to use the following filter like so.

    function popup28579_load_on_arvhices( $is_loadable, $popup_id ) {
    	// If its standard arvhice for posts.
    	if($popup_id  == 782 && is_archive()) {
    		return true;
    	}
    
    	// If its CPT archive for post type 'portfolio'
    	if($popup_id == 782 && is_post_type_archive( 'portfolio' )) {
    		return true;
    	}
    }
    add_filter('popmake_popup_is_loadable', 'popup28579_load_on_arvhices', 10, 2);
    Thread Starter studioleland

    (@studioleland)

    Fantastic. Testing this now.

    Plugin Author Daniel Iser

    (@danieliser)

    @studioleland – awesome, let me know if you run into any trouble. You need to change the popup id and post type of course.

    Also please take a moment to rate and review the plugin and or support

    Thread Starter studioleland

    (@studioleland)

    Perfect! Fantastic support for this! Exactly what I needed.

    Plugin Author Daniel Iser

    (@danieliser)

    Not a problem, I always try to answer as soon as I can.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘auto popup fails on CPT archive page’ is closed to new replies.