Created
March 12, 2021 01:47
-
-
Save ejcabquina/1dbe569d75ea2f15a024ec5dbdba0362 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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