Support » Plugin: Relevanssi - A Better Search » [Plugin: Relevanssi – A Better Search] "Read More…" link is doubled

  • Resolved eleanorb

    (@eleanorb)


    Each link appears twice in succession, looks like this for each item returned:

    …All are welcome — please join us! – Susan Mansfield-Jones . . . → Read More: Friendship Link: Movie and lunch, Wed., Jan. 25… . . . → Read More: Friendship Link: Movie and lunch, Wed., Jan. 25

    (Problem is now on my development site on my local computer, not visible to outside world..)

    http://wordpress.org/extend/plugins/relevanssi/

Viewing 15 replies - 1 through 15 (of 30 total)
  • Plugin Author Mikko Saari

    (@msaari)

    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!

    Plugin Author Mikko Saari

    (@msaari)

    What’s in your search results template?

    eleanorb

    (@eleanorb)

    How do I find that out?

    Plugin Author Mikko Saari

    (@msaari)

    It’s in your template files, usually search.php.

    eleanorb

    (@eleanorb)

    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.

    tsalzer

    (@tsalzer)

    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

    eleanorb

    (@eleanorb)

    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.

    Plugin Author Mikko Saari

    (@msaari)

    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.

    Plugin Author Mikko Saari

    (@msaari)

    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.

    eleanorb

    (@eleanorb)

    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.

    Plugin Author Mikko Saari

    (@msaari)

    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.

    eleanorb

    (@eleanorb)

    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!

    Plugin Author Mikko Saari

    (@msaari)

    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.

    eleanorb

    (@eleanorb)

    Sorry, that doesn’t seem to change anything… Still getting the double ‘more’s.

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] "Read More…" link is doubled’ is closed to new replies.