Skip to main contentSkip to footer

Another day, another version of Premium.

  • Added two new filters: relevanssi_index_titles and relevanssi_index_content. Add a function that returns false to the filters to disable indexing titles and post content respectively.
  • Google Adsense caused double hits to the user search logs. That’s now fixed thanks to Justin Klein.

Every now and then people have requested a way to prevent indexing post content. It’s now possible.

Justin Klein spotted a strange problem, where Google Adsense might cause double hits to search logs. Now searches done by Google Adsense bot won’t register in the search logs.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Indexing image alt texts
Relevanssi by default ignores image alt texts (and other tag attributes). That’s often the right thing to do because alt…
How to index parent categories

Suppose you have a parent category with no products in it but a child category does. If you search by the parent category can relevanssi be set up to show the products in the child category? Cars > Wiper Blades. A search for cars shows wiper blade products. By default…

ACF: Filtering custom fields by type

field type. Add this function to your site to restrict the custom field indexing to only “text” type fields: add_filter( ‘relevanssi_index_custom_fields’, function( $fields ) { $indexed_fields = array(); foreach( $fields as $field ) { $object = get_field_object( $field ); if ( is_array( $object ) && isset( $object[‘type’] ) && ‘text’…On sites where ACF fields are used a lot, with Flexible Content and Repeater fields, it may be difficult to make Relevanssi only index the relevant ACF fields. One way to deal with problem is to set Relevanssi to index “visible” custom fields and then restrict the indexed fields by…$fields as $field ) { $object = get_field_object( $field ); if ( is_array( $object ) && isset( $object[‘type’] ) && ‘text’ === $object[‘type’] ) { $indexed_fields[] = $field; } } return $indexed_fields; } ); To control which field types are included, modify the “if” clause to include more field types….

Related Posts:

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed