Envira Gallery is a gallery plugin for WordPress. Since it uses a custom post type for the galleries, it works fine with Relevanssi. However, the gallery post type doesn’t have any information about the actual images: no titles, tags or other details like that. Since the images are uploaded in……return $content; // Not a gallery post, skip. } $args = array( ‘post_parent’ => $post->ID, ‘posts_per_page’ => -1, ); $children = get_children( $args ); // Fetches all the attached images. foreach ( $children as $child ) { $content .= ‘ ‘ . $child->post_title; // Adds the image title. $content .=……the Media Library and are attached to the gallery posts, this is easy to remedy using the very helpful relevanssi_content_to_index filter hook. Add the following code to your site, set Relevanssi to index the envira post type and rebuild the index: add_filter( ‘relevanssi_content_to_index’, ‘rlv_envira_gallery_content’, 10, 2 ); /** * Indexes…
3 Comments. Leave new
Indeed. However, it was just a case of a version number in the code I forgot to update. I’ve fixed that now, so updating the plugin once should fix it.
works, thx!
The bug I reported in 1.7.9 is still there. In the admin panel the plugin displays an update, but the newest version is installed..