Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Display child terms - taxonomy

Posted on 2011-09-27
1
Medium Priority
?
186 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article discusses how to implement server side field validation and display customized error messages to the client.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

885 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