Skip to main contentSkip to footer

Avada is one of the most popular WordPress themes on the market.

All post types are not found

Avada has search settings, including a list of post types to show in the results. If your Avada search is not showing all post types, attachments or user profiles, the problem is probably in the Avada settings. It’s best to empty that option.

If you have not chosen any post types in the Avada settings, Avada will leave the control of the post types to Relevanssi, which will then show only those post types you’ve chosen to include.

Fixing excerpts

Avada uses a custom method of displaying excerpts, which is unfortunately not compatible with Relevanssi. This function will fix the issue from versions 5.6 onwards:

if ( ! function_exists( 'fusion_get_post_content_excerpt' ) ) {
  function fusion_get_post_content_excerpt( $limit = 285, $strip_html, $page_id = '' ) {
     global $post;
     return $post->post_excerpt;
  }
}

It’s simple as this. All you need to do is to add this function to your site, and you should have working Relevanssi-generated custom excerpts.

No results

Avada adds a fs parameter to the search. I don’t know what it does but sometimes it breaks the search completely. You can fix this problem by removing that parameter:

add_action( 'init', function( $query ) {
  if ( isset( $_GET['fs'] ) ) {
    unset( $_GET['fs'] );
  }
} );