Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Display child terms - taxonomy

Posted on 2011-09-27
1
Medium Priority
?
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

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

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

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

688 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