Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Random order isn't random in Masonry Post Listing #729885

    The site is in private content.

    Then, click on any post.

    At the bottom, above the related posts section, you’ll see a grid with just two items in it. They are promotions for other lead magnets around the site. There are four of them, and the grid is set to show 2 at a time loaded randomly. It always shows the same two.

    Justin

    Hi Ismael,

    Thank your for your reply.

    I meant to send you a diff comparison of my modified shortcode, but then I noticed the difference between the defualt masonry-entries and my own file is huge – because I was using the original file from previous version of Enfold as basis for modification. When I updated the theme, masonry-entries.php changed a lot and is quite smaller now.

    I scrapped my old modified shortcode and I’ll use the filter to alter the output and add those custom fields I need. This will solve my initial problem, as now loading new posts with ajax works OK across the site.

    However there is one thing that still bugs me and it would be great if you could point me in the right direction. Since I’m using this modified output to display Events custom posts, I need the query to order the posts using post meta argument (start date of the event). What would be the easiest way of adding this to the query?

    Thanks!

    EDIT:

    Nevermind, I worked something out by copying helper-masonry.php to child theme shortcode folder and creating a new class for modified masonry-entries. It got the job done :)

    Thanks for all your help

    • This reply was modified 8 years, 6 months ago by narasopa.
Viewing 2 posts - 1 through 2 (of 2 total)