Hi,
I’m trying to build a gallery, I have several albums and I created different categories based on my album numbers
<div id="pictures">
<div class="album">
{exp:channel:entries channel="photos" category="1" orderby="entry_id" sort="asc"}
{photo}
{/exp:channel:entries}
</div>
<div class="album">
{exp:channel:entries channel="photos" category="2" orderby="entry_id" sort="asc"}
{photo}
{/exp:channel:entries}
</div>
</div>so now im manually entering each category, and it’s really repetitive, is there anyway that the category number can be dynamic so i can just publish as many album without adding in the same code as below? I mean I can use javascript but is there another way to do it in EE? Thanks.
<div class="album">
{exp:channel:entries channel="photos" category="3" orderby="entry_id" sort="asc"}
{photo}
{/exp:channel:entries}
</div>