I figured out the answer, which seems to be an issue with WordPress.
Using get_terms() to get terms from another site WORKS, BUT A TAXONOMY BY THE SAME NAME MUST BE PRESENT ON THE SUBSITE YOU’RE WORKING FROM.
Below is my code (working):
switch_to_blog(1);
$taxonomy = array( 'taxonomy_name' );
$args = array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => false,
'exclude' => array(),
'exclude_tree' => array(),
'include' => array(),
'number' => '',
'fields' => 'all',
);
$terms = get_terms( $taxonomy, $args );
var_dump($terms);
restore_current_blog();
UPDATE: I’ve submitted a WP bug to Trac
https://core.trac.wordpress.org/ticket/35231#ticket
Related Posts:
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- How to list terms by first letter, as in A’s then B’s etc
- Displaying my custom taxonomies in a using the_term_list()
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Trash Bin for Categories?
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- is there a way of getting term children that only shows those from two taxonomies
- Pull data from MySQL and add it to terms
- Display term picture of each post in a loop
- Set two terms for a post when they differ only by an accent
- How can I show links for custom posts group by taxonomy current term and sub-term?
- How to use custom slug and custom templates for custom taxonomy?
- Get Terms of custom Taxonomy of products with certain Product Category
- Problems using get_the_terms in a plugin
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- How to list custom taxonomy terms alphabetically by last word
- Tree view wp-admin terms
- Retrieve the child terms by having the parent’s information
- Infinite Scroll appending Next Product Category Term pages
- add pagination in wordpress page template
- Get custom taxonomy terms that contain posts that have another taxonomy term
- Order get_terms by count using a custom taxonomy hierarchy
- Listing Cities A custom taxonmy by selection order
- Cloning product not copying custom taxonomies
- Add A CSS Class To A Menu Item When A Custom Taxonomy Term is Present On Single Post
- How to create a non removable taxonomy term?
- Count tags for current post and save into custom meta field (and update it on post edit)
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- WordPress taxonomy terms archive template help
- wp_insert_post not adding taxonomy (using wp_set_object_terms)
- Filter “get_terms” query
- Show message if term slug changed
- get parent and childs from hierarchcial taxonomy
- Add term to taxonomy programatically
- How to change custom categories term links?
- generate random slug when adding taxonomy
- setting a custom post type taxonomy term by code
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- Country-specific content
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- How do I check to see if a specific child term has shared posts with another set of child terms within the same taxonomy?
- Output slugs to use as class names for every taxonomy a post is attached to
- Print Custom Taxonomy Term Name
- set_object_terms for custom taxonomy in custom post type – not working
- Group & Sort Taxonomy terms by letter – Is there a better way?
- qtranslate-x problem with custom term description
- Resize $term attachment using url
- Product dimensions filter by taxonomy
- How can I pull the slug of a custom taxonomy and output it in a class?
- Orderby taxonomy term id using get_posts not working
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- Multisite custom taxonomy archive issues
- Custom post type term names with ampersand in the term name
- switch statement for taxonomy content
- Sorting terms individually for each post
- List terms and order by second word
- If page is a taxonomy do X, if is a term, do Y
- Query pages by child term
- Getting the parent terms adds additional empty markup [closed]
- Display taxonomy term slugs
- Permalink Rewrite to include Custom Taxonomy Term
- Trying to Display Number of Posts in Term
- Custom taxonomy list in two columns
- Tax query array terms display out of order
- Order posts with custom taxonomy array
- get_terms returns array starting at 4
- Taxonomy term breadcrumb; how?
- Determine if Term has Grandparent/Great-Grandparent
- How To Display Selected Terms For Custom Taxonomy?
- Insert term description programmatically into hierarchical custom taxonomy
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- get multiple values from $_GET from multiple checkboxes
- displaying links if term is used
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- How to include child terms within parent?
- install.php Custom Taxonomy Term not being added to custom post
- add_query_arg to look up page title
- Display term description on hover using get_the_term_list
- stdClass::$labels /wp-includes/general-template.php undefined
- Get post terms with hierarchical relationships
- Altering term_id and name via $wpdb class
- Multiple category lists on one page
- Unable to display the post titles in a drop down
- $term->taxonomy stripping out underscores
- Taxonomy archive link from term id
- How can I get parent term from a child term
- Create heirachy of post terms from array & assign post to terms
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- Display woocommerce product_cat child terms with thumbnails
- How can I get the term_id from the action hook ‘set_object_terms’?
- get_the_terms inside save_post gives old terms
- List posts grouped by children of a custom taxonomy
- Taxonomy Child Not Updating Unless I Click Update Twice
- How to delete unused terms?
- Foreach for get_the_terms for hierarchical taxonomy don’t repeat Top Level Terms if contains multiple Second Level Terms
- How do I check if a post has a term with a particular ancestor/parent?