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
- how to create a conditional content_width for a wordpress theme?
- How To Add New Option Types To Option Tree?
- How to limit wordpress menu depth in admin panel
- Modular theme settings
- Trigger Customizer saving process with Javascript only
- Comment form not display properly?
- How to add menu support to a theme?
- Setting up partial Right-to-Left admin interface
- Moving functionality from functions.php to classes?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- Create and move terms for taxonomies
- How to pass code from header.php to footer.php
- Extend walker – navigation, adding data attribute to a tag
- How to display category specific post content on a page
- Move my theme style.css into a folder
- Setting a Default ‘Theme Location’ When Creating a Menu
- How to keep my custom theme changes after updating genesis child theme
- How do I highlight the menu for a child page?
- Can I specify that custom.css gets loaded at Appearance > Editor instead of style.css?
- Can’t access WordPress functions in file called via Ajax?
- Check if password protected post is visible
- Custom Template for more than 1 Tag
- Same theme name issue with wordpress repository theme
- Meta tag viewport
- Change the template of multiple multisite pages at the same time
- Show video as part of the post?
- Is function_exists() considered a good practice when using 3.0+ functions?
- Changing stylesheet depending on custom taxonomy terms
- Parse error: syntax error, unexpected T_ENDWHILE in
- Divi Child Theme not appearing in “Themes” [closed]
- Where can i design and modify a new mail template for sending emails to users when commenting?
- WordPress theme switcher
- How can I wrap html around the output of the_time function?
- Problem with empty class attributes when running a filter on nav_menu_css_class
- Limitations when modifying wp_title with a filter
- Pass variable to hook. Its possible?
- WP_bootstrap_Navwalker_issue [closed]
- Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work
- Q: How to pull data from custom table to populate zustomizer setting/control select options
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- Adding taxonomy terms based on custom field
- correct tags for validating input types
- How to remove header image in Twenty Eleven theme?
- How to query the latest 5 posts and sort them by title?
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- What does wp_term_taxonomy.parent reference?
- Template Tag “template_directory” pulling wrong path
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- Have the homepage look different to index.php without a static page
- the_post_thumbnail() get the URL to the “medium” sized image
- Return Taxonomy Name for Each Term
- Display sibling categories on category page
- Why is switching between themes breaking my child theme?
- how to get term id from current post type instead of name
- How to style bootstrap container in wordpress theme?
- Wamp Server error on running wordpress theme on localhost. How do I fix this error? [closed]
- $_POSTing to and modifying the WP search results page
- Confused by the behaviour of “front page” / “home” templates
- If has_term, load other theme
- How to Grab first Image from some Chosen Categories
- Custom Post Type Taxonomy Term Order by Title
- Get themes’s images path in WordPress Multisite
- Get video from the post on homepage
- WordPress Themes Directory: Template which hits the standards?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- Can’t get term id for category archive
- How to get URL of category of a custom post?
- get_avatar() is not working in my custom theme
- Getting post URL within custom content template
- When I save changes for css and js in my WP localhost env windows 10 the changes don’t take effects immediately!
- Updatable theme developing
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- makeing a terms of use page that is part of the theme
- Child theme in separate WordPress Install
- Display problems in admin dashboard when creating a new theme from scratch
- Using Customizer value in an external PHP file inside a theme
- add_action priority and taxonomy used in plugin
- How to add drop symbol to parent nav items which have child
- How to avoid Ajax in wordpress theme in making mulitple request?
- Enqueue Stylesheets After Theme’s “rtl.css”
- WordPress 3.5 + Foundation 5 not working on IE9
- ISOTOPE – Missing/Invalid Arguement Get Terms
- Using wp_enqueue_script with social media buttons?
- Want to include ad code after related post
- How can disable function wp_link_dialog()
- Pagination adds product to cart Woo-Commerce
- Onepage with shortcodes
- How to create full header but keep content narrow
- Taxonomy term RestApi data 10 rows limitions