Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Viktor123b

    (@viktorbengtsson8)

    Hi @anilankola, thanks for the reply!

    When i changed EXISTS to LIKE I got a similar result as before where rows that had one of those fields came on top, just not in alphabetical order. When I removed the relation OR only rows with ‘customer_name’ appeared and not those with ‘quick_customer_name’ or with empty values.

    Maybe I should have posted the entire query. (left the relation OR where it is below)

    $posts_per_page = 10;
    $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    $args = array(
        'post_type' => 'offerter',
        'post_status' => 'publish',
        'posts_per_page' => $posts_per_page,
        'paged' => $paged,
        'meta_key' => 'business_id',
        'meta_value' => $business_id,
        'meta_query' => array(
            'relation' => 'OR',
            'customer_name' => array(
                'key' => 'customer_name',
                'compare' => 'LIKE',
            ),
            'quick_customer_name' => array(
                'key' => 'quick_customer_name',
                'compare' => 'LIKE',
            ),
        ),
        'orderby' => array(
            'customer_name' => 'desc',
            'quick_customer_name' => 'desc',
        )
    • This reply was modified 5 years, 4 months ago by Viktor123b.
    Thread Starter Viktor123b

    (@viktorbengtsson8)

    Super weird. Talked to the support and found the issue I guess. If a changed the user-level language to US english from website standard Swedish the error disappeared. No idea why, as I said, didnt have the problem on siteground.

    Thread Starter Viktor123b

    (@viktorbengtsson8)

    Thanks for replying.
    Yes, it didnt make a difference unfortunately. It did work without issues on siteground shared hostning, but migrated the website to vultr with runcloud. Is there any other settings than max_execution_time I could change?

    Thread Starter Viktor123b

    (@viktorbengtsson8)

    Ok I see, thanks for the reply! Its possible if we convert svg to png (we’re working on that).

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