Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ranran13

    (@ranran13)

    Thanks a lot, I got it to work.

    Thread Starter ranran13

    (@ranran13)

    Hi Mikko!

    That last bit of code worked !!!
    Thank you very much for you support and willing to help !
    Much appreciated,

    Ran

    Thread Starter ranran13

    (@ranran13)

    I’ve adde the above code but it didn’t make any difference πŸ™
    I the search form i the theme header :
    <form action=”<?php echo home_url(‘/’); ?>” method=”get” role=”search”>
    <div class=”form-group”>
    <input type=”search” name= “s” id=”s” value=”<?php echo get_search_query(); ?>” placeholder=”enter keyword…” >
    <button type=”submit” class=”btn text–gold”>SEARCH</button>
    </div><!– /.form-group –>
    </form>

    would that be the problem ?
    Thanks, Ran

    Thread Starter ranran13

    (@ranran13)

    Hi Mikko,

    this is the what I get after I added the first snippet :

    array(67) { [“s”]=> string(5) “roots” [“error”]=> string(0) “” [“m”]=> string(0) “” [“p”]=> int(0) [“post_parent”]=> string(0) “” [“subpost”]=> string(0) “” [“subpost_id”]=> string(0) “” [“attachment”]=> string(0) “” [“attachment_id”]=> int(0) [“name”]=> string(0) “” [“static”]=> string(0) “” [“pagename”]=> string(0) “” [“page_id”]=> int(0) [“second”]=> string(0) “” [“minute”]=> string(0) “” [“hour”]=> string(0) “” [“day”]=> int(0) [“monthnum”]=> int(0) [“year”]=> int(0) [“w”]=> int(0) [“category_name”]=> string(0) “” [“tag”]=> string(0) “” [“cat”]=> string(0) “” [“tag_id”]=> string(0) “” [“author”]=> string(0) “” [“author_name”]=> string(0) “” [“feed”]=> string(0) “” [“tb”]=> string(0) “” [“paged”]=> int(0) [“meta_key”]=> string(0) “” [“meta_value”]=> string(0) “” [“preview”]=> string(0) “” [“sentence”]=> string(0) “” [“title”]=> string(0) “” [“fields”]=> string(0) “” [“menu_order”]=> string(0) “” [“embed”]=> string(0) “” [“category__in”]=> array(0) { } [“category__not_in”]=> array(0) { } [“category__and”]=> array(0) { } [“post__in”]=> array(0) { } [“post__not_in”]=> array(0) { } [“post_name__in”]=> array(0) { } [“tag__in”]=> array(0) { } [“tag__not_in”]=> array(0) { } [“tag__and”]=> array(0) { } [“tag_slug__in”]=> array(0) { } [“tag_slug__and”]=> array(0) { } [“post_parent__in”]=> array(0) { } [“post_parent__not_in”]=> array(0) { } [“author__in”]=> array(0) { } [“author__not_in”]=> array(0) { } [“post_type”]=> array(3) { [0]=> string(4) “post” [1]=> string(10) “attachment” [2]=> string(4) “page” } [“ignore_sticky_posts”]=> bool(false) [“suppress_filters”]=> bool(false) [“cache_results”]=> bool(true) [“update_post_term_cache”]=> bool(true) [“lazy_load_term_meta”]=> bool(true) [“update_post_meta_cache”]=> bool(true) [“posts_per_page”]=> int(40) [“nopaging”]=> bool(false) [“comments_per_page”]=> string(2) “50” [“no_found_rows”]=> bool(false) [“search_terms_count”]=> int(1) [“search_terms”]=> array(1) { [0]=> string(5) “roots” } [“search_orderby_title”]=> array(1) { [0]=> string(164) “wp_posts.post_title LIKE ‘{dab712dc63c3979f12d62cd1b5295d501046215e93cf4cc61c2a33fad810178b}roots{dab712dc63c3979f12d62cd1b5295d501046215e93cf4cc61c2a33fad810178b}'” } [“order”]=> string(4) “DESC” }

    this is the what I get after I added the second snippet :

    string(581) “SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 5 + relevanssi.content * 1 + relevanssi.comment * 0.75 + relevanssi.tag * 0.75 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 0.75 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM wp_relevanssi AS relevanssi WHERE relevanssi.term = ‘sofi’ AND ( relevanssi.doc IN ( SELECT DISTINCT(posts.ID) FROM wp_posts AS posts WHERE posts.post_type IN (‘post’, ‘attachment’, ‘page’) ) ) ORDER BY tf DESC LIMIT 500”

    Many thanks, much appreciated
    Ran

    • This reply was modified 7 years ago by ranran13.
    Thread Starter ranran13

    (@ranran13)

    Yes, I am using WooCommerce Wholesale Lead Capture plugin

    Thread Starter ranran13

    (@ranran13)

    Hey,

    I found that if I am log-in I get the result fine (this why I thought that its not showing on mobile) but otherwise no results.

    Iv’e tried the snipped that were in the link but the all resulted in errors πŸ™
    Any thoughts ?

    Cheers, Ran

    Thread Starter ranran13

    (@ranran13)

    Hi Mikko,

    Strange before I had it working but you are right now its not working all together.
    Any suggestions how to solve that ?
    Thanks,
    Ran

    Thread Starter ranran13

    (@ranran13)

    Hi,
    Thanks for the replay, as you can see below they do get the classes.
    events
    <div id=”primary” class=”_mPS2id-t”>

    I dont have any other script or plugin activated.
    could it be something to do with the server ? do you know of any issues of this sort ?

    cheers

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