Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Matthew Muro

    (@mmuro)

    I’ll look into this and see.

    I was looking into doing something similar and added the get_categories attribute ‘parent’ to the plugin and it seems to have worked.

    public function shortcode( $atts ){
    		/* Extract shortcode attributes, set defaults */
    		extract( shortcode_atts( array(
    			'taxonomy' => 'category',
    			'title' => 'Categories',
    			'title_container' => 'h3',
    			'columns' => '3',
    			'orderby' => 'name',
    			'order' => 'ASC',
    			'show_count' => '0',
    			'exclude' => '',
    			'parent' => '',
    			), $atts )
    		);
    
    		/* Build an array of arguments for the get_terms parameters */
    		$args = array(
    			'parent' => $parent,
    			'orderby' => $orderby,
    			'order' => $order,
    			'show_count' => $show_count,
    			'exclude' => $exclude
    		);

    Once added, I was able to use [mctl taxonomy=’category’ parent=’3′] to display only children of category 3.

    Plugin Author Matthew Muro

    (@mmuro)

    get_categories calls get_terms anyways and adding the parent attribute is the solution I came to as well, I just haven’t had a chance to update the plugin yet. Expect a new version sometime this week.

    Plugin Author Matthew Muro

    (@mmuro)

    The new version is now live. It includes the ability to limit based on parent as well as a couple other features, too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Multi-Column Taxonomy List] Limit by Hierarchy?’ is closed to new replies.