Title: Endless loop during term import
Last modified: March 13, 2025

---

# Endless loop during term import

 *  ResolvedModerator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/endless-loop-during-term-import/)
 * Hi,
 * I would like to support your plugin with some of my plugins. One of the plugins
   provides a custom post type with a handful of taxonomies. The data records are
   obtained via an import from external sources.
 * As soon as I have activated WP Multilang, I can no longer perform the import.
   The reason is an infinite loop resulting from the `get_meta_field()` function.
 * When importing, I try to determine the term of a taxonomy via `get_term_by()`.
   This WordPress function in turn uses `get_term()`. Your “get_meta_field” is now
   called via a hook within it and also tries to retrieve the term itself via `get_term()`–
   this now ends in an infinite loop.
 * Do you have an idea how to get around this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Akshay A](https://wordpress.org/support/users/akshaycode1/)
 * (@akshaycode1)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/endless-loop-during-term-import/#post-18367646)
 * Hi,
 * Thank you for reaching out to us. Could you please confirm which plugin you are
   using that is causing this issue? Kindly share the link to that plugin as well.
   Also, please provide a screenshot of the issue occurring so we can check it on
   our end and provide you with a swift solution.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/endless-loop-during-term-import/#post-18370362)
 * Hello, thanks for the questions. I have since been able to solve the problem 
   myself after realizing that it only occurred with one of our Pro plugins. We 
   have added the option of translations for taxonomies there ourselves, which is
   of course no longer necessary if your plugin is activated.
 *  Plugin Support [Akshay A](https://wordpress.org/support/users/akshaycode1/)
 * (@akshaycode1)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/endless-loop-during-term-import/#post-18380625)
 * Alright, as per your last comment, we are closing this thread. However, if you
   need any help, please feel free to reach out to us. Have a great day ahead!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Endless loop during term import’ is closed to new replies.

 * ![](https://ps.w.org/wp-multilang/assets/icon-256x256.png?rev=1760406)
 * [WP Multilang - Translation and Multilingual Plugin](https://wordpress.org/plugins/wp-multilang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-multilang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-multilang/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-multilang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-multilang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-multilang/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Akshay A](https://wordpress.org/support/users/akshaycode1/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/endless-loop-during-term-import/#post-18380625)
 * Status: resolved