- It’s now possible to adjust the number of search results per page. See Changing posts_per_page for instructions.
- Somebody reported revisions appearing in the search results. Added an extra check to prevent that.
- Improved the indexing procedure to prevent MySQL errors from appearing and to streamline the process.
- Improved the way custom post types can be handled in indexing.
- Improved the method of removing nested highlights.
Indexing image captions for the posts
…can index it. The image captions for the images in the Media library is stored in the post excerpt, so what needs to be done is to fetch the post excerpts and include them. The actual filter is straightforward: add_filter( ‘relevanssi_content_to_index’, ‘rlv_add_attachment_excerpts’, 10, 2 ); /** * Indexes attachment excerpts…The use case is I run several newspapers, and the “caption” field when uploading media is where the journalists put the photographer credit. We need to be able to index the photographer bylines, but ideally would want to return the story/commentary where their image was used, not the image itself….…If you want to index the image captions for the posts where the images are used, that’s easy if the captions appear on the page: Relevanssi will index those captions as well as the other text from the post. However, if the captions don’t appear on the page, you need…
3 Comments. Leave new
Sorry about this. 2.9.2 is indeed broken — I removed a function, but missed an add_action() call that required it. I’ve just released 2.9.3 that fixes this problem. Strange, though, that such a small thing can cause such great havoc. Terribly sorry about the trouble!
Just upgraded and got this error on the dashboard and on the homepage:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘relevanssi_getLimit’ not found or invalid function name in /home/juanele/public_html/wp-includes/plugin.php on line 220
Hi,
I just update to 2.9.2 and in my Homepage where I have just 4 posts now is showing ALL POSTS…….is a big mess……something in this new version broke the Wp loop…….
Can you have a look, please?