Remove a href from this code
You could use get_the_terms() instead: http://codex.wordpress.org/Function_Reference/get_the_terms This just gives you an array of the associated terms. Then use that array to create your own list without links.
You could use get_the_terms() instead: http://codex.wordpress.org/Function_Reference/get_the_terms This just gives you an array of the associated terms. Then use that array to create your own list without links.
To fetch the archive url for that taxonomy term, use something like this (I’m using your naming conventions above, and assuming that $theZielgruppe is a term object. $url = get_term_link( $theZielgruppe, ‘ge_zielgruppe_taxonomy’ ); To get the name, just use $theZielgruppe->name Is that what you’re looking for? EDIT The link above would then look like this: … Read more
possibly with get_terms() and the ‘parent’ parameter: http://codex.wordpress.org/Function_Reference/get_terms
Yes there is: Terms Of Use plugin. Also able to add the checkbox to signup pages, works with Formidable forms plugin and enables you to add the checkbox before viewing a (front- or backend) page.
Since it looks like the “personal pages” are important in your project, I suggest a different approach. Use two distinct custom post types, one for the movies (the same you are already using) and one additional for the crew. You can create relationships between these custom post types using custom code or a specific plugin, … Read more
the answer actually turned out to be incredibly simple. Since I was already: $term = $wp_query->queried_object; I could simple do: $term->parent
get_ancestors() returns an array with the parent first, then the grandparent, etc. What you need to do change get_ancestors() to array_reverse( get_ancestors() ), so that you have the level of the parents descends, instead of ascending.
<?php $terms = get_terms( $taxonomies, $args ); $term_name_array = array(); foreach($terms as $term){ $term_name_explode = explode(“-“,$term->term_name); $myterm_name=””; for($i=0;$i<count($term_name_explode)-2;$i++){ $myterm_name.=” “.$term_name_explode[$i]; } $myterm_name = ltrim($myterm_name); if(in_array($myterm_name,$term_name_array)) continue; $term_name_array[] = $myterm_name; ?> <li><a href=”https://wordpress.stackexchange.com/questions/48983/<?php echo get_term_link($term->term_id)?>”><?php echo $myterm_name;?></a></li> <? } ?>
I was having the same problem the other day, due to a completely different typo 😉 $args = array( ‘description’ =>”My Desc”, ‘slug’ => “My Slug”, ‘parent’ => 0 ); $result = wp_insert_term(“Term1”, “category”, $args); Note the corrected ‘description’ element in the $args array.
@Sisir linked you to the appropriate place, if you had read the question/answer and the linked Codex documentation you’d have seen that you could do something like the following: $args = array( ‘post_type’ => ‘dealers’ ‘tax_query’ => array( array( ‘taxonomy’ => ‘state’, ‘field’ => ‘slug’, ‘terms’ => array(‘bob’,’angela’,’john’,’smith’,’jan’,’doe’,’etc…’) ) ) ); $query = new WP_Query( … Read more