Title: luck3rm's Replies | WordPress.org

---

# luck3rm

  [  ](https://wordpress.org/support/users/luck3rm/)

 *   [Profile](https://wordpress.org/support/users/luck3rm/)
 *   [Topics Started](https://wordpress.org/support/users/luck3rm/topics/)
 *   [Replies Created](https://wordpress.org/support/users/luck3rm/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/luck3rm/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/luck3rm/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/luck3rm/engagements/)
 *   [Favorites](https://wordpress.org/support/users/luck3rm/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Woocommerce removing parent category slug](https://wordpress.org/support/topic/woocommerce-removing-parent-category-slug/)
 *  [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/woocommerce-removing-parent-category-slug/#post-13602490)
 * I also need help with this.
    How do we stop parent slugs from showing in subcategory
   permalinks in WooCommerce?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets] Importing products attributes](https://wordpress.org/support/topic/importing-products-attributes/)
 *  [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/importing-products-attributes/#post-12571010)
 * Hello [@davidserrano72](https://wordpress.org/support/users/davidserrano72/)
   
   I received a snippet of code from WP All Import support that solved the problem.
 * “Yes, it looks like you can use a custom PHP function for this: [http://www.wpallimport.com/documentation/developers/execute-php/](http://www.wpallimport.com/documentation/developers/execute-php/).
   The idea would be to pass the name of the attribute you want along with all of
   the names/values, then loop through them to find the value. Here’s how you’d 
   call the function:
 * [my_get_attribute_value(“SIZE”,array({Extras/Name}),array({Extras/Value}))]
 * And the code would be:
 * function my_get_attribute_value( $attr, $name, $value ) {
    if ( empty( $name )
   || empty( $value ) ) return;
 *  $names = explode( “, “, $name[0] );
    $values = explode( “, “, $value[0] );
 *  foreach ( $names as $key => $v ) {
    if ( $v == $attr && array_key_exists( $key,
   $values ) ) { return $values[ $key ]; } } }”
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Strange ÅÄÖ-behaviour in category URLs](https://wordpress.org/support/topic/strange-aao-behaviour-in-category-urls/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/strange-aao-behaviour-in-category-urls/#post-12017410)
 * Hi,
 * I tried what you said and it now works on my site, for example [https://alissa.se/kl%C3%A4der/aftonkl%C3%A4nningar/](https://alissa.se/kl%C3%A4der/aftonkl%C3%A4nningar/)
 * For my purposes, I think I’ll go with ÅÄÖ URLs anyway and maybe redirect non-
   ÅÄÖ to the actual URLs.
 * Thanks for your help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Strange ÅÄÖ-behaviour in category URLs](https://wordpress.org/support/topic/strange-aao-behaviour-in-category-urls/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/strange-aao-behaviour-in-category-urls/#post-12014350)
 * I’m not using any plugin for permalinks. Like I said, this way of URL-encoding
   works with WordPress standard posts, pages and taxonomies, and it works with 
   the slug for the shop, but not WooCommerce product category URLs.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Strange ÅÄÖ-behaviour in category URLs](https://wordpress.org/support/topic/strange-aao-behaviour-in-category-urls/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/strange-aao-behaviour-in-category-urls/#post-12014346)
 * Hi,
 * I converted them to a percent encoded format. So Ö becomes %C3%B6 for example.
   Pasting that in, I’m able to get ÅÄÖ in WordPress-urls.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Premmerce Permalink Manager for WooCommerce] Permalink manager not working with ÅÄÖ urls](https://wordpress.org/support/topic/permalink-manager-not-working-with-aao-urls/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/permalink-manager-not-working-with-aao-urls/#post-12011945)
 * Hi,
    Any updates on this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets] Importing products attributes](https://wordpress.org/support/topic/importing-products-attributes/)
 *  [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/importing-products-attributes/#post-11990267)
 * Hey [@wpallimport](https://wordpress.org/support/users/wpallimport/)
    The attributes
   in my XML feed are structured like this: <name>Color</name> <value>Green</value
   > <name>Size</name> <value>Medium</value> and so on and so fourth. Additionally,
   the name-value-pairs are not always in the same order (sometimes Size would come
   before Color) and there are different ones for different kinds of products.
 * How can I import this?
    The only way I see it could work is if I add like 10 
   attributes (more than the amount on the product that has the most) and drag in
   the Name and Value ones in the respective field. That would create new attributes
   for each product feed though and I’d like to be able to merge the attributes 
   by mapping them against my own ones…
 * What would you suggest I do?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP in subdirectory: Keeping old homepage](https://wordpress.org/support/topic/wp-in-subdirectory-keeping-old-homepage/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-in-subdirectory-keeping-old-homepage/#post-11820446)
 * Got it to work. Just had to put this before the RewriteRules:
    RewriteCond %{
   REQUEST_URI} !^(/)$
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP in subdirectory: Keeping old homepage](https://wordpress.org/support/topic/wp-in-subdirectory-keeping-old-homepage/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-in-subdirectory-keeping-old-homepage/#post-11819836)
 * Hi,
 * Good point, but I don’t want to have to load WordPress for my homepage. It’s 
   a fast and coded from scratch. I only need WordPress for a specific section of
   my website.
 * Here’s my .htaccess code that rewrote the URLs including the homepage.
 * RewriteCond %{HTTP_HOST} ^(www.)?test.klassensval.se$
    RewriteCond %{REQUEST_URI}!
   ^/studenten/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule ^(.*)$ /studenten/$1 RewriteCond %{HTTP_HOST} ^(www.)?test.klassensval.
   se$ RewriteRule ^(/)?$ studenten/index.php [L]
 * Can I set up an exception for the homepage somehow?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Premmerce Permalink Manager for WooCommerce] Permalink manager not working with ÅÄÖ urls](https://wordpress.org/support/topic/permalink-manager-not-working-with-aao-urls/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [7 years ago](https://wordpress.org/support/topic/permalink-manager-not-working-with-aao-urls/#post-11748673)
 * Hi,
 * I don’t use WPLM or Polylang. I saved the product category by using URL-encoded
   values as substitutes for the ÅÄÖ-letters (å = %C3%A5). That method always tends
   to work in WordPress.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Premmerce Permalink Manager for WooCommerce] Permalink manager not working with ÅÄÖ urls](https://wordpress.org/support/topic/permalink-manager-not-working-with-aao-urls/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [7 years ago](https://wordpress.org/support/topic/permalink-manager-not-working-with-aao-urls/#post-11729138)
 * Hi,
    it’s not working still. The ÅÄÖ now works at [https://alissa.se/produkt-kategori/kl%c3%a4nningar/](https://alissa.se/produkt-kategori/kl%c3%a4nningar/)
   but it keeps putting “produkt-kategori” in front. I want to remove that completely
   and just get [https://alissa.se/klänningar](https://alissa.se/klänningar)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Boxzilla - WordPress Popup Builder] Close Boxzilla box upon redirect](https://wordpress.org/support/topic/close-boxzilla-box-upon-redirect/)
 *  Thread Starter [luck3rm](https://wordpress.org/support/users/luck3rm/)
 * (@luck3rm)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/close-boxzilla-box-upon-redirect/#post-9755690)
 * Awesome, that worked!
 * Thank you for the help!

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