• Resolved nfleshman

    (@nfleshman)


    How can I show only the parent attachment_category=”agendas-minutes” in this dropdown and it’s child attachment_categories. For Example, I do not want to show attachment_category=”zoning”.

    Screenshot

    View post on imgur.com

    Code:
    <form action=”.” method=”post”>[mla_term_list taxonomy=attachment_category current_attachment_category=”agendas-minutes” mla_output=dropdown mla_option_value=”{+slug+}” show_count=true pad_counts=false ]

    <input type=”submit” value=”Search” />

    </form>

    [mla_gallery]
    attachment_category=”{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}” post_mime_type=all post_parent=all link=file mla_target=”_blank” mla_viewer=true columns=2 orderby=title order=desc[/mla_gallery]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nfleshman

    (@nfleshman)

    BTW…..this plugin is amazing! Thank you!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your kind words and for your question. I believe you can achieve your goal by using the include_tree parameter as outlined in this earlier topic:

    Term_list/tag_cloud for partial taxonomy

    Your existing [mla_term_list] shortcode includes current_attachment_category="agendas-minutes", which is not a valid parameter and is ignored. I believe substituting include_tree with the appropriate term ID will give you better results.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the solution described in the earlier topic. Thanks for your interest in the plugin.

    Thread Starter nfleshman

    (@nfleshman)

    This is exactly what I was looking for. Thank you so much David!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Display Dropdown for a specific Parent Category’ is closed to new replies.