AFAIK, when a new term is imported, it will get an arbitrary ID, similar to posts. If all you need is a term attached to some posts, then it’s fine, because WordPress handles that automatically.
However, if you use the term ID somewhere else, like in the Customizer, you can’t get the new term ID.
I’d suggest you should not rely on the term ID. Why not using term slug? It’s not kind of 100% unique, but in most cases, it remains the same when you import. And you can easily get the term via get_term_by
.
Related Posts:
- Display a list of certain categories by ID
- Display current taxonomy slug in a post
- get_term_link is Ending to single.php
- Add a field to the taxonomy editor?
- How can I remove image taxonomy pages from my theme and from Google?
- get_the_terms() returning wrong results inside of loop
- How do I edit the terms output args or array data?
- How do I make my terms for each product display via foreach loop? (woocommerce)
- Different templates for each category level
- Theme template file for a specific custom taxonomy
- WordPress Two Level Filters on Getting Custom Taxonomy Terms
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- Display Custom Post Type Based on Taxonomy With WP_Query()
- Default customizer colors aren’t displayed outside of the preview
- Image cropping isn’t working correctly when using Offload Media
- How toprint informations in footer
- Theme functions don’t work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]
- How to implement pagination in category.php template
- Can any IDE (eg PHPStorm, VS Code) correctly show functions added via require get_template_directory() string results?
- How can I set multi archive page template on same time for only one custom post type?
- Array for WordPress Avatar Size and Class
- Use instead of for wp_nav_menu()
- How to order taxonomy terms by most recent post?
- Can’t display posts by filtering categories using isotope.js
- Find out the reason that the Styles and scripts in the theme are loading properly in localhost but Not in server after deploying
- Exclude categories from wp query not working
- Copying a modified theme from one wordpress site to another wordpress site [closed]
- Embedding CodePen Calorie Script – jquery error
- WordPress theme doesn’t read my translations from pt_BR.po file
- Fetch data from database with dropdown selected option
- Infinite loop when nesting have_posts()
- How to get custom logo with REST API instead of get_theme_mod();
- How can I change this SVG shape that’s generated?
- How to make updatable custom WordPress theme?
- Find the source file causing a Mixed Content warning
- How can I access variables from theme in child theme? [closed]
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- How to display only author’s name for the current post?
- Theme does not allow shortcodes
- Get gallery images description not work for some images id
- Listing Cities A custom taxonmy by selection order
- How to handle theme activation errors?
- Cloning product not copying custom taxonomies
- Get_header raises an 500 internal server error
- How to load jQuery with Ajax in WP version 5.3.2?
- Theme: dropdown hover menu not showing up in IE/Edge
- Local variable name in setup_postdata()
- Create category after theme setup and modify the default one
- How to enqueue scripts properly with ES6 webpack?
- Can you edit a theme in a text editor?
- Creating a Single Page Theme correctly
- Disabling wordpress added class
- Updatable theme developing
- What is the use case for sharing a term between multiple taxonomies?
- Problem with pagination link (error 404)
- How can i Limit My Wp Theme To Only One Site
- Text widget is placing everything side by side. I want to post it above
- How to display home page last modified date in anywhere of wordpress theme?
- Custom Static Page to Display Blog Posts in Excerpt Non-Singular Form (is_singular not working?)
- SIte logo is not displaying
- WordPress Theme: What is the right way to put inline CSS loading from a CSS file
- wordpress custom category post shortcode
- Get WooCommerce product category list in functions.php
- How to create a non removable taxonomy term?
- How to reduce the vertical space above and below a ul list uniformly with one command?
- Order custom taxonomy hierarchy
- Show Yoast SEO meta tags in Custom WordPress Templates (Theme)
- I want to get term by term_name without taxonomy
- Is it possible to echo a woocommerce prouct attribute discription?
- fetch all post from wp multisite network and sort all the post in descending order on the basis of “Created by ” term
- How do I keep my iframes responsive and scaled to fit their container?
- How can I include custom Gutenberg Blocks in a theme?
- Can I set rest API endpoints from within a theme?
- WordPress displaying two different headers, one at top and one below footer
- Theme starter content translation is not working
- What is an alternative to not using child theme to customize a WordPress theme?
- Ajax Comment Upvotes – Votes don’t always register
- Getting unexpected warnings from theme options code
- Adding a second logo next to the main one in header
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- How Do I Create a WordPress Demo Site with Limited Admin Access
- Where i must put hooks in overridable functions?
- Importing sass into underscores theme
- Loop is breaking my theme. How can I fix?
- Custom post type query with pagination doesn’t work
- How do you remove the “Your Main Benefit Statement Goes Here.” From one of my pages?
- WordPress wp_get_current_user returning blank values until refresh
- Error Handling when building WordPress themes
- use a single nonce in three different nonce field
- the_content() not displaying description correctly
- Fatal error: Class WP_Customize_Image_Control not found
- What is difference between add_theme_support and Theme Customization API?
- the_content() is getting null in Preview Debug
- Infinite scroll without plugin using ajax
- Can I have two files with same name but different directory?
- Put CSS Content inside tag for WordPress
- Is there a way to add classes to a page when using a Gutenberg reusable block as page layout?
- Pages not displaying as sections on static page
- How can I show a custom WordPress menu anywhere I want on my website?
- Filter “get_terms” query