Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM Random order and price range

This topic contains 8 replies, has 3 voices, and was last updated by  animone 3 years, 1 month ago.

  • Author
  • #100701


    hi anna

    I have two questions:

    – How can I set the default order in random order?
    I found several solutions here on the forum but do not work …
    how can I fix it?

    – In demo I saw in the search “price range” animated, how can I add it?

    thanks and good day

  • #100884


    Hi Fabrizio,

    Thank you for your message.

    1.For the moment we are not sure that you can do this. There is a forum with some suggestion, but did not worked for every one. We will try to add this in version 1.07 .

    2.Please see this video tutorial:

    Please do not hesitate to contact us for more support by opening a ticket in our ticket system

    Thank you,

  • #101031


    hello anna,
    thanks for the reply.

    1- meantime I solved for the listing random, I’ve changed the theme.

    2- I watched the video, but in my backend do not have the field “show sliders for price” why?

  • #101032


    Ciao Fabrizio

    The price slider was added in version 1.06 –

    Perhaps you have an older version? if that is the case, you must upgrade. We’re now at v 1.07

    Here is the list of additions by version –!/log

    Here is the list of video tutorials for the most important latest features added –


  • #101033


    hi anna

    mmm… here’s the problem I’m working on version 1.05 🙁

    I have massively changed the theme in different parts… now I can easily change it to a child theme and make a claim of the upgrade of the theme without losing my edits?

  • #101050



    Working in child theme is ok, as long as you know how to manage child theme. A child theme does not guarantee the original theme updates will work always with your changes, but at least you have them in one place, separate from the code.

    I can guide you do css changes in child theme, but more complex changes require you study wordpress codex and know how to manage the code. Or you would have to update and add the changes back.

    I am sure neither options sound great, but unfortunately these are the only possibilities.

    Thank you

  • #101064


    How did you solve for random order?

  • #101087


    hi animone,

    yes, I solved it, as you can see here:

    at each refresh of the page order is random!

    the main change is in the file libs/help_functions.php line 44
    $ orderby = $ table_prefix.’postmeta.meta_value DESC, ‘. $ table_prefix.’posts.ID DESC’;
    $ orderby = ‘rand ()’;

    but I’m honest, I do not remember if I made other modifications in other files…
    I had to speed up the project and I have not updated “my diary”

  • #101181


    Ciao Fabrizio,

    siamo entrambi Italiani (Cagliari il sottoscritto)

    Grazie per la risposta. Purtroppo però anche gli ultimi immobili inseriti (non solamente i “Featured”) vengono “randomizzati”.

    Il problema è che in questo modo proprietà inserite mesi fa rientrano tra gli ultimi inserimenti. Ed ovviamente non va bene. Deve esserci un ordine cronologico preciso.

    Però oggi sono riuscito ad ottenere ciò che interessa me. Featured Randomizzate ed Ultimi inserimenti in ordine cronologico.

    Il codice da modificare è in \libs\shortcode.php

    riga 166 ‘orderby’ => ‘meta_value’, cambia in ‘orderby’ => ‘rand ‘,

    riga 211 add_filter( ‘posts_orderby’, ‘wpestate_my_order’ ); cambia in add_filter( ‘posts_orderby’ );

    riga 214 add_filter( ‘posts_orderby’, ‘wpestate_my_order’ ); cambia in add_filter( ‘posts_orderby’ );

    Adesso inserisco anche in inglese.

    Ciao (è il mio bed and breakfast. Lo trovi anche su Facebook. Un like sarebbe utile. Io l’ho già fatto sul tuo)

You must be logged in to reply to this topic.