Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
remove acf-field + wp-block from indexable types as they are included…
Browse files Browse the repository at this point in the history
… in post content
  • Loading branch information
KhadijaMahanga committed Dec 10, 2019
1 parent 03bf67e commit 11a8ad1
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions wp-content/themes/hurumap/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
add_filter( 'ep_index_name', 'custom_index_name');

0 comments on commit 11a8ad1

Please sign in to comment.