Subdomains Timeout
The last few months have been quite hectic as a lot has been going on for me. As a result my work on WordPress Subdomains has suffered. I know a lot of people have been contacting me, but I’ve just not had the time to reply.
This weekend I will be replying to those who asked for help and will be releasing the next version of WordPress Subdomains (0.7) in the next week. The code has been ready for 2 months now, but I’ve just not had a chance to test it.
Sorry for the delays folks.

November 4th, 2009 by
Alex Stansfield in
WP Subdomains, Web Development
Tags: 0.7
663 views | 7 Comments
Tags: 0.7
663 views | 7 Comments

Hi, I have the this issue,
I have:
category_parent
category_child1
category_child2
category_child3
I would like my permalink (to the post) as following:
category_parent.site.com/category_child1/post-title
In the post if I choose just the category_child1 the subdomain with category_parent doesn’t create and I get:
site.com/category_parent/category_child1/post-title
My permalink structure is /%category%/%postname%.html
To remove the category base (“/category/”) I have installed Top Level Categories plugin.
To create the subdomain I have to check category_parent and category_child1 but then my permalink is:
category_parent.site.com/post-title.html
My child category looks good (as permalink to the category):
category_parent.site.com/category_child1/
I want just select category_child1 in the post admin and the WP SUbdomains plugin take automatically the category_parent to create the subdomain.
Thanks.
This is one of my favorites plugins.
I use this plugin and everything is OK. I understand you meaning:
You want, in other words – simplest-:
Category_Parent as Subdomain
Caterory_Child as Folder
subdomain.site.com/folder/title-post
Just checking the Subcategory box at Admin Panel.
Great plugin. This certainly saved me a lot of work.
I’m not sure if this has been addressed, but I recently downloaded version 0.6.6 and found one small bug. I implemented a fix that I hope you find useful as well.
I have a category named ‘javascript’. In that category there is a post titled something like ‘Post about JavaScript’ and the slug is ‘post-about-javascript’.
On the category archive page (javascript.example.com), the link to that post is given as ‘http://javascript.example.com/category/permalink/structure/post-about-’. As you can see, it drops the ‘javascript’.
I have other posts titled like ‘javascript-post’, and those show up fine. After some tests I found that the plugin is finding ‘javascript/’ and dropping it out of the href string.
Here’s the fix that I implemented:
In the file ‘wp-subdomains/plugin/classes.php’ go to the getCategoryPath() method in the WpsSubDomainCat class.
There are two if statements in the function. The first is used to construct the string that will be matched. The second is used to construct the replacement string.
I converted the first if statement to create a string with forward slashes (‘/’) at the beginning and the end. The second if statement will create a string that is or ends with a forward slash (‘/’).
Now, the function that performs the replacement will have to match the category name only if it’s surrounded by shashes (‘/javascript/’) an will replace it with a forward slash (‘/’).
Now this link (‘http://javascript.example.com/category/permalink/structure/post-about-javascript/’) and this link (‘http://javascript.example.com/category/permalink/structure/javascript-post/’) work fine.
If you want to see the actual code I used, send me an email and I’ll give it to you.
I was wondering if there’s a plugin similar to this that works for DOMAINS not subdomains. I have 4 domains and WP is installed on one of them, so I don’t want to have multiple installs of WP on 4 different domains if I work it like your subdomain addon.
Thanks.
MMM.. no answer yet…
I would like category_parent as subdomains and category_child as folder
Hello, I have the same issue as FaFa, did we get any update?
thanks!
Hi! I have no options for category in WP 3.0
Plugin works almost 100%, this is the only one bug I found with this new release.