• function create_my_cat() {
    if (file_exists(ABSPATH . ‘/wp-admin/includes/taxonomy.php’)) {
    require_once (ABSPATH . ‘/wp-admin/includes/taxonomy.php’);
    if (!get_cat_ID(‘Testimonials’)) {
    wp_create_category(‘category one’); wp_create_category(‘category tow’);

    }
    }
    }

    i want to add this category in cutome menu…how i can add.it when i activate my theme

  • The topic ‘how to add menu and its category when theme activation in function.php’ is closed to new replies.