Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1373506
    John B
    Participant

    I would like to display 3 random posts in an Essential Grid. I have tried using ‘orderby=rand’ and this does not work.

    #1373507
    John B
    Participant
    This reply has been marked as private.
    #1373717
    Rupok
    Member

    Hi there,

    Kindly follow the Essential Grid and see if they have such option – https://essential.themepunch.com/documentation/

    Cheers!

    #1374188
    John B
    Participant

    All I could find was ‘orderby=rand’. It does not make the grid display random posts.

    #1374613
    Lely
    Moderator

    Hello John,

    Would you mind providing us with login credentials so we can take a closer look on your setup? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – Page with essential grid

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1374626
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! When you added then ‘orderby=rand’, did you limit the maximum entries? You will have to limit it because your parameter is useless if the grid is set to display all posts.
    http://prntscr.com/e9sd2h

    Hope this helps.

    #1374914
    John B
    Participant
    This reply has been marked as private.
    #1375635
    Rad
    Moderator

    Hi there,

    It should be order and not orderby. The order values are ASC, DESC, and RAND, while orderby are name, dates, id, and etc.

    I changed it to order and it works. But also note that your site has Godaddy’s cache, which means, different items will only appear when you clear the cache. Cache makes dynamic content to static.

    Thanks.

    #1376407
    John B
    Participant
    This reply has been marked as private.
    #1376746
    Rad
    Moderator

    Hi there,

    Ah yes, sorry, it should ORDERBY for RAND, I mistook from another but similar functionality. And it might be cache since it works after clearing the Godaddy cache but it takes the time to take effect on browser’s cache.

    It should work, I checked it on my installation with no cache and it’s correctly displaying the random items. Random posts needs to be generated over and over every page load which makes it dynamic, and it’s the opposite of cache, it will render the same content over and over (static).

    Database query (random items) is done in server side and not in the browser side, it shouldn’t be device specific. It might just be due to browser cache. Try it with private browsing.

    Thanks!

    #1377272
    John B
    Participant

    Hi Rad;

    The day before yesterday, while trying to figure out another way of achieving what I wanted, I made a grid using Theme-one’s “TheGrid” plugin, which comes with x-theme. Here is the page: http://7ce.45d.myftpupload.com/triad/. I works quite well. When you refresh the browser the user gets new posts randomly. The only problem is that is does not seem to work with iOS.

    Do you have any ideas about I might get TheGrid to work on iOS?

    Also, do you have any thoughts on how to deliver three random posts of a given category on a page by any other method, such as javascript placed into the grid plugin?

    #1377595
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! Please try to check your iOS browser cache. It might just be a browser cache issue. It is known fact that mobile devices relies on the browser caching to speed up the mobile browsing experience. Please try using private browsing mode or Chrome’s incognito mode and test your site again in your mobile device.

    Please be aware that the grid is using PHP in delivering the items to display. Any modifications of the plugin would be a custom development which is way beyond the scope of our support.

    Thank you for your understanding.

  • <script> jQuery(function($){ $("#no-reply-1373506 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>