Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter igorcek

    (@igorcek)

    I have found that conflict with this code that I need to include a custom post type to archive pages:

    function namespace_add_custom_types( $query ) {
      if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
        $query->set( 'post_type', array( 'post', 'nav_menu_item', 'prodotto' ));
    	  return $query;
    	}
    }
    add_filter( 'pre_get_posts', 'namespace_add_custom_types' );

    Plugin Author Daniel Iser

    (@danieliser)

    @igorcek – Do you have the latest version of Popup Maker? Also I am not sure exactly what your trying to do or if the second post here is relevant to what your trying to do with popup maker.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘On category pages the plugin not load the popup’ is closed to new replies.