Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question. The easiest solution to displaying categories and filtering content is to combine an [mla_tag_cloud] shortcode with the [mla_gallery] shortcode. Here is a solution that contains a cloud and a paginated gallery:

    <h3>The Tag Cloud</h3>
    Click on a term to populate the gallery below.
    
    [mla_tag_cloud taxonomy=attachment_category number=0 mla_link_href="{+page_url+}?term_slug={+slug+}"]
    
    <h3>The Gallery</h3>
    [mla_gallery post_mime_type=all post_parent=all attachment_category="{+template:({+request:term_slug+}|a-bad-term)+}" mla_nolink_text="No pages to show." posts_per_page=2 mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?term_slug={+request:term_slug+}&another_slug={+request:term_slug+}"]
    
    [mla_gallery post_mime_type=all post_parent=all attachment_category="{+template:({+request:term_slug+}|a-bad-term)+}" mla_nolink_text="Click a term to display the gallery." posts_per_page=2]

    You can find some additional information in this earlier topic:

    Using tag cloud shortcode to display galleries

    Of course, the cloud format has some shortcomings for hierarchical taxonomies, as acknowledged in this topic:

    Tag cloud as a hierarchical list

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above example or other aspects of selecting categories and displaying the results. Thanks for your interest in the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Category Menu’ is closed to new replies.