Title: toojee's Replies | WordPress.org

---

# toojee

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] SyntaxError: Unexpected token < in JSON at position 0](https://wordpress.org/support/topic/syntaxerror-unexpected-token-in-json-at-position-0-3/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/syntaxerror-unexpected-token-in-json-at-position-0-3/#post-8389212)
 * Thx to you I finally find the issue!
 * the htaccess was not the problem but my hosting provider yes! I was not thinking
   any moment at it!
    I’m on OVH.com (I’m french) and I was activated the firewall(
   mod_security as they said). Once it was deactivated I was able to activate photon
   then I reactivate the firewall and everything seem to work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Post Type Permalinks] How to delete the slash at the end?](https://wordpress.org/support/topic/how-to-delete-the-slash-at-the-end/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/how-to-delete-the-slash-at-the-end/#post-5997653)
 * oh ok thanks for the tip!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CPT-onomies: Using Custom Post Types as Taxonomies] Permalink with custom post type](https://wordpress.org/support/topic/permalink-with-custom-post-type/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/permalink-with-custom-post-type/#post-4236467)
 * I wondering if the wordpress multisite for 1 site is the solution for this.
    
   With the example above, create each site for : – main with pages and blog – movies–
   tv-show – dvd – vod
 * With this no more issues with urls.
    My website needs to split data so it’s maybe
   a better solution… I don’t know…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CPT-onomies: Using Custom Post Types as Taxonomies] Archive Page Slug problem](https://wordpress.org/support/topic/archive-page-slug-problem/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/archive-page-slug-problem/#post-4200076)
 * Ok sorry I find my problem!
    With help of Rewrite Rules Inspector plugin I see
   I use double quotes intead of simple quote in add_rewrite_rule, so php convert
   $matches[1] to nothing.
 * This works perfectly!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CPT-onomies: Using Custom Post Types as Taxonomies] Archive Page Slug problem](https://wordpress.org/support/topic/archive-page-slug-problem/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/archive-page-slug-problem/#post-4200074)
 * Thanks for the answer!
 * I wrote this rule in functions.php :
    `add_rewrite_rule( "^hotel/city/([^/]*)/?","
   index.php?post_type=hotel&city=$matches[1]&cpt_onomy_archive=1", "top" );`
 * When i go in url like “www.domain.com/hotel/city/new-york/” I have a archive 
   page but not whith the hotels in new york city. I have listed all the hotels 
   in all cities. In the sql query I don’t see city involve.
 * “city” is of course a post type attach to post type “hotel”.
    I need to do something
   more to make this working?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Permalinks] Archive taxomomies with many CPT](https://wordpress.org/support/topic/archive-taxomomies-with-many-cpt/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/archive-taxomomies-with-many-cpt/#post-4200038)
 * I find a solution, i go into plugin page php and in function add_tax_rewrite_rules(
   line 486):
    I add `&post_type='.$post_type` after each lines between line 532–
   535.
 * Now for [http://www.domain.com/hotel/city/new-york/](http://www.domain.com/hotel/city/new-york/)
   I have the list of hotel in new york
    And [http://www.domain.com/car/city/new-york/](http://www.domain.com/car/city/new-york/)
   I have the list of car rent in new york And [http://www.domain.com/city/new-york/](http://www.domain.com/city/new-york/)
   I have both of them, car and hotel!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Force Regenerate Thumbnails] Thumbnails not deleted](https://wordpress.org/support/topic/thumbnails-not-deleted/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/thumbnails-not-deleted/#post-3276355)
 * I don’t find how change DIRECTORY_SEPARATOR so I add a line to the plugin line
   419 :
 * `$fullsizepath = strtr($fullsizepath, '/', '\\');`
 * And its work fine, I will use the untouched plugin for production
    thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Force Regenerate Thumbnails] Thumbnails not deleted](https://wordpress.org/support/topic/thumbnails-not-deleted/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/thumbnails-not-deleted/#post-3276351)
 * Hi, i look at the code php this week end, and i figured out why doesn’t work.
   
   On line 458, when I do a : `$message .= '<br />'.$dirPath;`
 * I see **c:\wamp\myproject\** instead of **c:\wamp\myproject\bin\wp-content\uploads\**
 * So in line 464, it search in wrong directory to delete files. And $imageName 
   is egual to “**bin/wp-content/uploads/2012/12/my-file-**“
 * I think its a DIRECTORY_SEPARATOR problem because I have 2 of them / and \
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Force Regenerate Thumbnails] Thumbnails not deleted](https://wordpress.org/support/topic/thumbnails-not-deleted/)
 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/thumbnails-not-deleted/#post-3276280)
 * Its in local with wamp, so I have all the permissions. When i delete this image
   by wordpress, all thumbnails are delete except the 520×340, because I changed
   this in add_image_size.
 * With the plugin, I have this success message:
    1 “image-test” (ID 286): All thumbnails
   was successfully regenerated in 0,525 seconds. That’s all.
 * I have no deleted message like this : “Thumbnail: 150×150 was deleted.” or failed
   message
 * Thanks for your response.

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