how to get value of relationship taxonomy field?
-
following situation:
POD: forderung (custom post type)
– field “intro” (plain text)
– field “alter” (relationship to forderungsalter / dropdown)forderungsalter (custom taxonomy)
– field f_alternow i want to show it this values in my template
echo get_post_meta( $post->ID, 'intro', true )
this works, but i cannot get the values of “alter”!
echo get_post_meta( $post->ID, 'alter', true )
doesnt work. Also..
wp_get_post_terms( $post->ID, 'alter', array( "fields" => "all" ) );
doesnt work because it is not a real taxonomy field!
how can i get the value if the field “alter”thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘how to get value of relationship taxonomy field?’ is closed to new replies.