Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #923222

    The shop page is not displaying most recent first but the oldest first.
    How can I change this? Woocommerce settings are set on recent date

    https://www.studioinktvis.com/brand/postkaarten/

    #923417

    Hey studioinktvis,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #923727

    Here you are

    #924403

    Hi,

    Thank you for the info.

    We added a pre_get_posts filter in the functions.php file but it created an error. I’m really sorry about that. Please provide the FTP details in the private field so that we can edit the filter.

    // product brands order
    add_action( 'pre_get_posts', 'pre_get_posts_product_brands_order' );
    // Modify the current query
    function pre_get_posts_product_brands_order( $query ) {
        //echo '<pre>'.var_export($query['product_brand'] != '', true).'</pre>';
        if( ! is_admin() && $query->is_main_query() && $query['product_brand'] != '') {
            $query->set( 'order', 'DESC' );
        }
        return $query;
    }

    Best regards,
    Ismael

    #924407

    Ooo

    You did this!
    My hosting company is now fixing it
    Please wait a minute

    #924468

    It is fixed . Please try again

    #924779

    Hi,

    We did what?
    Can you please tell us more info?

    Best regards,
    Basilis

    #924784

    Hi Basis,

    Someone added something in the function.php and then my whole site did not work anymore. But it is fixed now. So can you fix my problem now ?!

    #925446

    Any help??????

    #925734

    Hi,

    Not sure what is left.
    Have you tried the code that Ismael has supported?

    Best regards,
    Basilis

    #925993

    Please read all the text. Ismael added the filter and then the whole site went blank.
    So no I am not gonna “test” it again.
    Maybe Ismael can help?

    #927077

    Hi,

    I’m sorry for the delay, been away for 2 days. We added the filter again. Please remove browser cache or do a hard refresh before checking the page.

    Best regards,
    Ismael

    #927125

    Do you have vacations at Kriesi ?! ;-)

    Thanks it worked!

    #927327

    Hi,

    Do you have vacations at Kriesi ?! ;-)

    Yes, if authorized. :D

    Glad it worked. Let us know if you need anything else. :)

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘woocommerce shop page most recent display not working’ is closed to new replies.