Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Could anyone explain to me how to create a picture galleries page, using the built in Wordpress galleries (no plugins if possible)?

Basically, I would like to create a page (template?) in which I loop over all the news of the type Gallery.

I've seen some related questions, but without an answer. Could anyone be of service?

Thanks in advance.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

If 'gallery' is a taxonomy item (like a category) you could create a new page template (perhaps based on index.php) and then use the get_posts() function to return a list of posts in that category.

That's the process. Do you need more detail?

If 'gallery' is a post format that may be a quite different operation.

share|improve this answer
    
Hi, thanks! Yes, it is a category "gallery". Creating a new page template is not a problem, the actual PHP code for the get_posts() is another thing. Could you provide a little more detail? –  maartenmachiels Feb 14 '12 at 10:30
    
Thank you, your views have set me in the right direction and have now found a suitable solution. –  maartenmachiels Feb 21 '12 at 10:48
    
Glad I could help :-) Can you post your solution for the benefit of anyone landing here? –  Niels Feb 22 '12 at 23:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.