• Hi Everybody!

    I have a problem when I want to insert some new categories : ‘Call to undefined function term_exists() in wp-admin/includes/taxonomy.php’

    Here it is the addcategory.php file.

    https://pastebin.com/2cPNzBqm
    Thanks for helping!

    _________________________________________
    kindras

Viewing 3 replies - 1 through 3 (of 3 total)
  • With an out of the box WordPress installation this should work. What I recommend it:

    1. Download the latest version of WordPress from here or the version you are using from here (if you are running an older version). (note that ideally you should always run the latest version)

    2. Re-copy all the files.

    3. If it is still not working, then start by disabling the plugins 1 by 1 and try each time you disable a plugin.

    4. If after all plugins has been disabled, then try reverting to the default theme.

    This should work and should help you find out what is causing such an issue.

    Thread Starter Anthony Barrier

    (@kindras)

    John,

    Thanks for replied quickly!

    I’m going to revert to the default theme, and I hope that it will works

    Thread Starter Anthony Barrier

    (@kindras)

    Alright,

    I’ve change my method, I use

    if(!is_term($term, $taxonomy)){
      wp_insert_term($term, $taxonomy, $args);
    }

    Thanks for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create category don't work’ is closed to new replies.