From 11a8ad1242d71854fff42fd07674ac28e51a5259 Mon Sep 17 00:00:00 2001 From: khadija Date: Tue, 10 Dec 2019 13:47:42 +0300 Subject: [PATCH] remove acf-field + wp-block from indexable types as they are included in post content --- wp-content/themes/hurumap/functions.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/wp-content/themes/hurumap/functions.php b/wp-content/themes/hurumap/functions.php index cb0b2714..ab3e4830 100644 --- a/wp-content/themes/hurumap/functions.php +++ b/wp-content/themes/hurumap/functions.php @@ -249,16 +249,4 @@ function custom_index_name() { return 'takwimu'; } -add_filter( 'ep_index_name', 'custom_index_name'); - - - -//Update indexable posts -function update_indexable_posts( $post_types ) { - - return array_merge( $post_types, array( - 'wp_block' => 'wp_block', - 'acf-field' => 'acf-field') - ); -} -add_filter( 'ep_indexable_post_types' , 'update_indexable_posts'); \ No newline at end of file +add_filter( 'ep_index_name', 'custom_index_name'); \ No newline at end of file