Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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. General Discussion
  3. Limit project index to a number of recents?

Limit project index to a number of recents?

Scheduled Pinned Locked Moved General Discussion
9 Posts 4 Posters 130 Views
  • 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.
  • T Offline
    T Offline
    treh16
    wrote on last edited by
    #1

    Hi there, is there a way to limit the Project Index output to let's say 20 latest projects only?

    Thanks

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

      unfortunately not.

      you could however create a category "new" and then show only the projects from this category

      Screenshot 2024-07-17 at 14.47.29.png

      i wrote this idea of yours down

      i think at the moment this is only possible with the thumbnailgrid element

      1 Reply Last reply
      0
      • T Offline
        T Offline
        treh16
        wrote on last edited by
        #3

        @arminunruh hmm, thanks for the tip but that's not really a workaround for us - we would need to be updating the category manually.
        Is it maybe possible to limit it by date? Say we limit the Project Index by only showing the last three months of projects?

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

          i realized you can use this css. the first css statement hides all project index rows, the other css shows all first 20 of them:

          .lay-projectindex-row{
              display: none!important;
          }
          .lay-projectindex-row:nth-child(1),
          .lay-projectindex-row:nth-child(2),
          .lay-projectindex-row:nth-child(3),
          .lay-projectindex-row:nth-child(4),
          .lay-projectindex-row:nth-child(5),
          .lay-projectindex-row:nth-child(6),
          .lay-projectindex-row:nth-child(7),
          .lay-projectindex-row:nth-child(8),
          .lay-projectindex-row:nth-child(9),
          .lay-projectindex-row:nth-child(10),
          .lay-projectindex-row:nth-child(11),
          .lay-projectindex-row:nth-child(12),
          .lay-projectindex-row:nth-child(13),
          .lay-projectindex-row:nth-child(14),
          .lay-projectindex-row:nth-child(15),
          .lay-projectindex-row:nth-child(16),
          .lay-projectindex-row:nth-child(17),
          .lay-projectindex-row:nth-child(18),
          .lay-projectindex-row:nth-child(19),
          .lay-projectindex-row:nth-child(20){
              display: flex!important;
          }
          

          Is it maybe possible to limit it by date? Say we limit the Project Index by only showing the last three months of projects?

          no, but the above css should do the trick

          1 Reply Last reply
          0
          • T Offline
            T Offline
            treh16
            wrote on last edited by
            #5

            Thanks a lot!

            1 Reply Last reply
            0
            • doorofperceptionD Offline
              doorofperceptionD Offline
              doorofperception
              wrote on last edited by
              #6

              And would it be possible to combine this with a "Show more" button that expands the hidden elements?

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

                i'd need to add this as a feature, i wrote it down

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  melo_lenosier
                  wrote on last edited by
                  #8

                  Hello @arminunruh
                  is there any update regarding this feature?
                  I made a website in the past that now has this problem. The client wrote so many articles (projects) that now the page is a super long list of project thumbnails. It would be cool to allow to load a max number of pj-thumbnails per page and then the classic "Prev or Next" at the bottom of the page for checking the older or newer ones.

                  Thank you!

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

                    for project index feature there is no news on this

                    well for the news element, we have this feature

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    I also code custom websites or custom Lay features.
                    šŸ’æ Email me here: šŸ’æ
                    info@laytheme.com

                    Before you post:
                    1. When using a WordPress Cache plugin, disable it or clear your cache.
                    2. Update Lay Theme and all Lay Theme Addons
                    3. Disable all Plugins
                    4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                    This often solves issues you might run into

                    When you post:
                    1. Post a link to where the problem is
                    2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                    3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                    Online Users
                    A
                    alasdair17
                    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