Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Vanessa.W

    (@vanessaw)

    On 1, i installed the plugin and changed the code (removed the post_content sections in the query) and it works perfekt now. Thank you.

    On 2. I want to search only portfolio items but when i delete line 960 i get results from portfolio and pages.

    Thread Starter Vanessa.W

    (@vanessaw)

    Hi,

    on 2, i changed this line

    if ( $wp_query->is_search && $bsearch_settings['seamless'] && !is_admin() ) {

    to

    if ( $wp_query->is_search && $wp_query->is_main_query() && $bsearch_settings['seamless'] && !is_admin() ) {

    And i deleted line 960 (not 390) Sorry.

    on 1, i changed the weighting of the title to 10 and content 0. -> no changes.
    I changed the code to

    $sql .= "AS score FROM ".$wpdb->posts." WHERE MATCH (post_title) AGAINST ('%s' {$boolean_mode} ) AND post_status = 'publish' ";

    and removed

    $sql .= "(MATCH(post_content) AGAINST ('%s' {$boolean_mode} ) * %d ) ";

    this line and it changes nothing.

    Thanks for your answer.
    Vanessa

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