Skip to content

Instantly share code, notes, and snippets.

@rayrutjes
Created September 20, 2017 18:17
Show Gist options
  • Save rayrutjes/2c5b975af1b2926bd29fb89f3891e6e8 to your computer and use it in GitHub Desktop.
Save rayrutjes/2c5b975af1b2926bd29fb89f3891e6e8 to your computer and use it in GitHub Desktop.
Display wordpress content filter
<?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