Hi @emmepassa
How can i set the import to EXCLUDE the HOME category?
You can use a custom PHP function to do this: http://www.wpallimport.com/documentation/developers/execute-php/. Example function:
function my_exclude_first_cat( $cats ) {
$cats = explode( ">", $cats );
array_shift( $cats );
return implode( ">", $cats );
}
Great, it works.
I used another script starting from your suggestion.
But now i have other problem:
the cvs the i receive from my dropshipper have a “bad” structure:
“man-clothes-t-shirt”
categories separated by “-“.
I tried to create a function the replace text “t-shirt” with “t shirt”. Works good, i create the child category “t shirt” but wpallimport create also the “T” child and the “SHIRT” child.
Seem that when import begin, before create all categories and childs splitting by “-“.
May u help me?
Hey @emmepassa
Seem that when import begin, before create all categories and childs splitting by “-“.
If you’re removing the “-” from t-shirt with a function, then this shouldn’t happen. Please replicate this issue at http://www.wpallimport.com/debug/ and open a ticket with more details at http://www.wpallimport.com/support/ so that we can have a look.
You are right.
Now works good.
There was categories in db that was hidden. (when i remove all categories, in the admin panel there was 37 categories but i didn’t seen). I clean the db and all goes good.
Thx.