toojee
Forum Replies Created
-
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
In reply to: [Simple Post Type Permalinks] How to delete the slash at the end?oh ok thanks for the tip!
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
– vodWith this no more issues with urls.
My website needs to split data so it’s maybe a better solution… I don’t know…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!
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
In reply to: [Custom Post Type Permalinks] Archive taxomomies with many CPTI find a solution, i go into plugin page php and in function add_tax_rewrite_rules (line 486):
I add&post_type='.$post_typeafter each lines between line 532 – 535.Now for 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/ I have the list of car rent in new york
And http://www.domain.com/city/new-york/ I have both of them, car and hotel!Forum: Plugins
In reply to: [Force Regenerate Thumbnails] Thumbnails not deletedI 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
thanksForum: Plugins
In reply to: [Force Regenerate Thumbnails] Thumbnails not deletedHi, 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
In reply to: [Force Regenerate Thumbnails] Thumbnails not deletedIts 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.