I’m trying to create a single page where I display a few posts on one page. So far so good. Works all fine. Now I display posts in a foreach loop where I check if they are connnected to the page.

What I need ist something like wp_get_post_terms($post->ID); but that doens’t work. There are custom registered_taxonomy‘s.

So how can I get all taxonomy names by $post->ID?

4 s
4

Ooh, thank’s for the advices and help (Robert + Peter). The Term confused myself 🙂 This worked for me:

$taxonomies=get_taxonomies('','names');
wp_get_post_terms($post->ID, $taxonomies,  array("fields" => "names"));

Leave a Reply

Your email address will not be published. Required fields are marked *