Solved

Display child terms - taxonomy

Posted on 2011-09-27
1
174 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
Comment Utility
How about

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

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to count occurrences of each item in an array.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now