Photo quary for my portfolio page
-
I am building a custom wordpress theme from scratch. So far it is going great, but I have a problem with a image-based portfolio page I have in mind.
What I want to achieve is to make a portfolio page (using a grid) that automatically updates when I add new photos… Either on top or at the bottom of my grid.
I think the way to go is to create a loop that keeps creating grid items as long as there are images.
My questions:
– Is it even possible to upload pictures, either on the specific page with the builder or in the dashboard, and pick specific images with that loop for my portfolio page? Because in the dashboard are all the images for the website uploaded, but only some are for my portfolio page. How can I select the right images for my loop?– How do I create that loop? I have succesfully created loops that upload all the images, but now I want a loop only picking some. Also, a loop with post attachments also didnt work somehow.
Thanks for the help! Any other ideas to create automatically-updating portfolio pages are welcome.
- The topic ‘Photo quary for my portfolio page’ is closed to new replies.