• Resolved model13

    (@model13)


    The searchform shortcode added to Relevanssi is a nifty feature, but it is coded incorrectly and is making a mess of our home page display as a result. The call to the WP core function to display the search form needs to indicate that it should be returned, not echoed.

    The function relevanssi_search_form() is coded as:

    return get_search_form();

    It needs to be:

    return get_search_form( false );

    This has broken a number of our sites (we weren’t using Relevanssi’s shortcode; we already had our own, correctly coded, searchform shortcode that is now calling Relevanssi’s function instead of our own). We will be renaming our own shortcode to eliminate the conflict, but as we have 300+ WordPress sites to update, we’d appreciate a quick fix to this.

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

    (@msaari)

    Good catch, this will be fixed in the next version. How soon is that, I can’t tell; it’s on the works, but within days or within weeks, can’t promise anything right now.

    Thread Starter model13

    (@model13)

    Thank you! I appreciate your response — and this great plugin. We’ve renamed our own searchform shortcode and updated our top-level sites to make this less urgent on our end.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘searchform Shortcode Echoing instead of Returning’ is closed to new replies.