Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. order of project items is getting mixed up

order of project items is getting mixed up

Scheduled Pinned Locked Moved Bug Reports
13 Posts 3 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    G
    goetz
    wrote on last edited by
    #2

    My Domain is: www.goetzlange.de

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #3

      i see i had the same issue with projectindex and coded a workaround back then

      working on it now

      1 Reply Last reply
      0
      • G
        G
        goetz
        wrote on last edited by
        #4

        Thanks Armin!

        1 Reply Last reply
        0
        • G
          G
          goetz
          wrote on last edited by
          #5

          Would be nice if you could give me a massage when you solved the problem. Thank you!

          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by
            #6

            hey u can update lay theme now and then see if it is fixed!

            1 Reply Last reply
            0
            • G
              G
              goetz
              wrote on last edited by
              #7

              fixed! Thank you very much for the great support!

              1 Reply Last reply
              1
              • arminunruhA
                arminunruhA
                arminunruh
                Global Moderator
                wrote on last edited by
                #8

                very nice :))

                1 Reply Last reply
                0
                • S
                  S
                  sreibel
                  wrote on last edited by
                  #9

                  Hi,

                  when using "Sort by Date" in the Project Thumbnail Grid block, the sort order is hardcoded to DESC, meaning the post with the farthest future date appears first. For event-based sites, the expected behavior is the opposite: the nearest upcoming date should appear first, in ascending order.

                  The fix is a one-line change in frontend/assets/php/elements/thumbnailgrid_functions.php at the two places where $order is set:

                  Current:
                  if( $orderby == 'menu_order' || $orderby == 'post_title' ) {
                  $order = 'ASC';
                  }

                  Suggested fix:
                  if( $orderby == 'menu_order' || $orderby == 'post_title' || $orderby == 'post_date' ) {
                  $order = 'ASC';
                  }

                  Ideally this could also be a configurable option in the block editor, for example "Sort by Date ascending" vs. "Sort by Date descending", similar to the existing "Reverse Order" button.

                  Thank you!

                  1 Reply Last reply
                  0
                  • arminunruhA
                    arminunruhA
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #10

                    hey! Oh yeah, this is a very good call and an amazing idea. I will implement this, and it will be included with the next update. Thanks for the heads up.

                    1 Reply Last reply
                    0
                    • arminunruhA
                      arminunruhA
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #11

                      well, probably I can't just change the default order, but i will insert a new setting for this

                      1 Reply Last reply
                      0
                      • arminunruhA
                        arminunruhA
                        arminunruh
                        Global Moderator
                        wrote on last edited by
                        #12

                        grafik.png

                        this is what it will look like

                        1 Reply Last reply
                        0
                        • S
                          S
                          sreibel
                          wrote on last edited by
                          #13

                          Thanks so much Armin!

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          Online Users
                          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                          laytheme.com
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Search