Skip to content

Instantly share code, notes, and snippets.

@New0
Last active June 15, 2020 08:09
Show Gist options
  • Save New0/aff5a8ead08a8d17fde1bd07f381963e to your computer and use it in GitHub Desktop.
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.
<?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