Solved

Display child terms - taxonomy

Posted on 2011-09-27
1
180 Views
Last Modified: 2012-08-14
Hey,

I am using this code below:

$terms_as_text = get_the_term_list( $post->ID, 'eventcategories', '', ', ', '' ) ;
echo strip_tags($terms_as_text);

Open in new window


But I have this structure:

Alpine
   Sugarloaf
   Sunday River

I would like it to only display the children. And I have seen get_ the_children(), but I need this to be display inside a loop to display that instance.

Thanks
0
Comment
1 Comment
 
LVL 31

Accepted Solution

by:
gwkg earned 500 total points
ID: 36713496
How about

<?php get_term_children( $term, $taxonomy ) ?>

http://codex.wordpress.org/Function_Reference/get_term_children
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question