Skip to main contentSkip to footer

Premium 1.8.2.1

This is a very small fix and you only need to upgrade to this version if you use the Role Scoper plugin, in which case this upgrade should be considered mandatory. If you don’t use Role Scoper, there’s probably no need to upgrade (there may be some other plugins that have problems with Relevanssi this fix will heal, but if they exist, I don’t know of them).

Your account

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

Search

Popular Resources

Envira Gallery

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…

Scroll result page to the search term

…function( m, key, value ) { // callback vars[key] = value !== undefined ? value : ”; } ); return vars[param]; } }); </script> The easiest way is to just add this to the single post template, but the right way is to use wp_enqueue_script(). Now the post page will……search term in the highlight parameter. On your search results template, you likely have something like this: <a href=”<?php the_permalink(); ?>”><!–?php _e( ‘Read More’, ‘total’ ); ?–></a> Change it to this to append the search query to the URL: <a href=”<?php if (function_exists(‘relevanssi_the_permalink’)) { relevanssi_the_permalink(); } else { the_permalink(); }…

Related Posts:

Currently there are no related posts available.

Comment Section:

3 Comments. Leave new

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