Created
September 20, 2017 18:17
-
-
Save rayrutjes/2c5b975af1b2926bd29fb89f3891e6e8 to your computer and use it in GitHub Desktop.
Display wordpress content filter
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 | |
// https://github.com/algolia/algoliasearch-wordpress/blob/master/includes/indices/class-algolia-searchable-posts-index.php#L82 | |
// Replace | |
$post_content = apply_filters( 'the_content', $post->post_content ); | |
// With | |
$post_content = $post->post_content; | |
// Same change on this file | |
// https://github.com/algolia/algoliasearch-wordpress/blob/master/includes/indices/class-algolia-posts-index.php#L92 | |
// Replace | |
$post_content = apply_filters( 'the_content', $post->post_content ); | |
// With | |
$post_content = $post->post_content; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment