What kind of settings you have in place?
You can see my current settings at http://dl.dropbox.com/u/5293565/RelevanssiSettings.png
Thanks for your interest!
What’s in your search results template?
It’s in your template files, usually search.php.
Okay, let’s see. First, I have made no changes in any of the program files in the folder relevanssi. In the file search.php in the relevanssi folder, I have searched for the word “template” and found nothing. Is this what you mean? If not, perhaps I am too unskilled to understand your message.
I’m getting the same thing: duplicate “more” links on search results. Disabling Relevanssi eliminates this behavior. Somehow, Relevanssi and my theme functions are not playing well together. Live example: http://conservationdistrict.org/?s=budget
I’m not sure why you think the theme is responsible however. I see you are using Clear Line Theme, and I am using Atahualpa. Also, I’m not sure when this started. It is occurring on both my online and development versions, one using WP 3.0.5 and the other 3.4.1.
Eleanorb, please copy the whole search.php file (that IS the search results template) to a pastebin and show it to me.
It is very much a theme issue, and probably caused by the way your theme is adding those more links. Tsalzer, you too could post your search results template to a pastebin so I can take a look at it.
Actually, based on another thread here, I think I may have a clue. Your site may be adding the more link with the get_the_excerpt filter call, which gets called twice, for some reason.
Mikko, thanks for your help. I’ve placed the search.php file in my dropbox, http://dl.dropbox.com/u/5293565/search.php
Let me know what I can do to debug the get_the_excerpt possibility. I see this call in a number of files, in relevanssi, in the wp_includes folder, and in functions.php of my theme.
That’s not your search results template, that’s the search.php file from Relevanssi.
Your search results template is located in your theme folder in wp-content/themes/. Also it might be useful to take a look at the functions.php of your theme as well.
My theme is Atahualpa, which does not have a file search.php. (See list of theme files at http://dl.dropbox.com/u/5293565/EleanorTheme.png)
I do have a file functions.php, but I don’t know what to look for. I have placed that file at http://dl.dropbox.com/u/5293565/functions.php so you can check it out. Thanks!
Ok, it’s probably the bfa_wp_trim_excerpt()
function, which is behind this. Maybe. You can try finding this line in the functions.php:
add_filter('get_the_excerpt', 'bfa_wp_trim_excerpt');
and change it to
//add_filter('get_the_excerpt', 'bfa_wp_trim_excerpt');
See if that helps.
Sorry, that doesn’t seem to change anything… Still getting the double ‘more’s.