WordPress.org

Forums

Multi-column Tag Map
Is there any possibility to hide all sub-categories? (4 posts)

  1. debacle
    Member
    Posted 1 year ago #

    Hi, thanks for a great plugin!

    Is there any possibility to hide all sub-categories? I have about a hundred categories, and each category has a number of subcategories. Is there a way to just show all parent categories in the index?

    https://wordpress.org/plugins/multi-column-tag-map/

  2. debacle
    Member
    Posted 1 year ago #

    I solved it myself by adding 'parent=0' to the mctagmap_functions file.

    here is the code if someone else looking for the same solution:

    $tags = get_categories('order=ASC&parent=0&hide_empty='.$show_empty.'');
  3. Pipeliners
    Member
    Posted 1 year ago #

    I need do it with taxonomies it does not work... Anyone knows how?

    $tags = get_terms( $taxonomy, 'order=ASC&parent=0&hide_empty='.$show_empty.'');

    Thanks

  4. FadingMusic
    Member
    Posted 8 months ago #

    Where exactly do I add 'parent=0' to the mctagmap_functions file?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multi-column Tag Map
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic