Tagged: x
-
AuthorPosts
-
February 16, 2017 at 7:23 am #1373506
John BParticipantI would like to display 3 random posts in an Essential Grid. I have tried using ‘orderby=rand’ and this does not work.
February 16, 2017 at 7:24 am #1373507
John BParticipantThis reply has been marked as private.February 16, 2017 at 10:13 am #1373717
RupokMemberHi there,
Kindly follow the Essential Grid and see if they have such option – https://essential.themepunch.com/documentation/
Cheers!
February 16, 2017 at 5:06 pm #1374188
John BParticipantAll I could find was ‘orderby=rand’. It does not make the grid display random posts.
February 17, 2017 at 12:24 am #1374613
LelyModeratorHello 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 gridDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
February 17, 2017 at 12:43 am #1374626
Rue NelModeratorHello 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/e9sd2hHope this helps.
February 17, 2017 at 7:10 am #1374914
John BParticipantThis reply has been marked as private.February 17, 2017 at 4:49 pm #1375635
RadModeratorHi 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.
February 18, 2017 at 1:01 pm #1376407
John BParticipantThis reply has been marked as private.February 18, 2017 at 11:24 pm #1376746
RadModeratorHi 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!
February 19, 2017 at 1:21 pm #1377272
John BParticipantHi 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?
February 19, 2017 at 8:51 pm #1377595
Rue NelModeratorHello 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1373506 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
