WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Images
Doesn't adhere to 'child_of' argument (5 posts)

  1. bgajus
    Member
    Posted 1 year ago #

    When combined with the having_images = false argument, the child_of argument does not appear to work. Here is my code.

    $args=array(
      'taxonomy' => 'custom_tax',
      'having_images' => false,
      'term_args' => array(
      	  'class' => 'alignleft',
    	  'orderby' => 'name',
    	  'order' => 'ASC',
    	  'child_of' => 150,
    	  'hierarchical' => 1,
    	  ),
       );

    http://wordpress.org/extend/plugins/taxonomy-images/

  2. bgajus
    Member
    Posted 1 year ago #

    But the parent argument does work for me and that's all I need.

  3. bgajus
    Member
    Posted 1 year ago #

    Should add also that the 'class' => 'alignleft' argument does not appear to work either. I may have it formatted incorrectly though.

  4. elbego
    Member
    Posted 1 year ago #

    Tell me about it!

    Michael - if you're out there I'll buy you a virtual beer - just please fix the child_of !

  5. elbego
    Member
    Posted 1 year ago #

    stand down - managed to get ti working with:

    'parent' => $current_term->term_id,

    instead of:

    child_of => $current_term->term_id,

    That's 2 days I'll never get back!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.