Last active
June 15, 2020 08:09
-
-
Save New0/aff5a8ead08a8d17fde1bd07f381963e to your computer and use it in GitHub Desktop.
Using Easy Pods function in the_content filter hook to display the query instead of using the shortcode.
This file contains hidden or 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
<?php | |
//EDIT easy_pods_name with the correct name of the easy pods | |
add_filter('the_content', function($content) { | |
// Check if we're inside the post 661 | |
if ( get_the_ID() === 661 ) { | |
return $content . cep_render_easy_pod( 'easy_pods_name' ); | |
} | |
return $content; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment