Skip to content

Instantly share code, notes, and snippets.

@ejcabquina
Created March 12, 2021 01:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ejcabquina/1dbe569d75ea2f15a024ec5dbdba0362 to your computer and use it in GitHub Desktop.
Save ejcabquina/1dbe569d75ea2f15a024ec5dbdba0362 to your computer and use it in GitHub Desktop.
if(is_archive() || is_home() ){
add_filter( 'generate_has_default_loop', '__return_false' );
}
add_action( 'generate_before_main_content', function(){
if(is_archive() || is_home() ){
if ( function_exists( 'wpsp_display' ) ) wpsp_display( 1794 );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment