How to paginate 2 separate gallery
-
Hi david,
I would like to ask you a question about paginating my galleries in att. categories and [mla_tag_cloud].
so here’s the thing, I want my att.categories to get paginated and also my att.tag at [mla_tag_cloud]This is my code
`<form id=”mla-text-form” action=”.” method=”post” class=”row”>
Att. Categories
[mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value=”{+slug+}” show_count=true pad_counts=false ]<input id=”text-form-submit” name=”text_form_submit” type=”submit” value=”Search” />
</form><h3>Gallery</h3>
[mla_tag_cloud]
taxonomy=attachment_tag
mla_link_href=”[+page_url+]?current_id={+term_id+}”
number=0 smallest=12 largest=12 separator=’ / ‘
[/mla_tag_cloud][mla_gallery]
attachment_category=”{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}”
tax_query= “{+template:(array \\( 0 => array \\( ‘taxonomy’ => ‘attachment_tag’, ‘field’ => ‘id’, ‘terms’ => array\\( {+request:current_id+} \\) \\) \\))+}”post_parent=all
mla_caption=”{+image_alt+}”
columns=3 posts_per_page=4 size=full link=file
mla_link_class=”nav-links”[/mla_gallery]
[mla_gallery]
attachment_category=”{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}”
mla_output=”paginate_links,prev_next”
mla_link_class=”nav-links”
tax_query= “{+template:(array \\( 0 => array \\( ‘taxonomy’ => ‘attachment_tag’, ‘field’ => ‘id’, ‘terms’ => array\\( {+request:current_id+} \\) \\) \\))+}”
post_parent=all
columns=3 posts_per_page=4 size=full link=file
mla_link_href=”[+page_url+]?&tax_input[attachment_category]={+query:attachment_category,url+}”
[/mla_gallery]
- The topic ‘How to paginate 2 separate gallery’ is closed to new replies.