Two-level multisites in WordPress
I believe the domain mapping plugin can do this, but don’t quote me on that. Domain mapping isn’t necessarily limited to mapping to other domains. It can map to subdirectories too.
I believe the domain mapping plugin can do this, but don’t quote me on that. Domain mapping isn’t necessarily limited to mapping to other domains. It can map to subdirectories too.
I don’t know of you like the sound of domain mapping but check out http://codex.wordpress.org/Migrating_Multiple_Blogs_into_WordPress_3.0_Multisite and check out number 6 if they are on the same server. If not import seperate install into them so that number 6 works.
You could create a network-of-networks, using the WP Multi Network Plugin. The primary network would be a subdomain network, and the subsidiary networks would be subdirectory networks. Alternately, you could simply set up a subdomain network, and then use a static front page in each of the network sites, with the blog posts index set … Read more
I figured it out. The fact is, a network can use subdomains or subfolders, even when WordPress is installed in it’s own folder as long as the main site’s HOME URL is set to domain.com and not to the sub folder location. Here’s an example: I setup a clean install of WordPress using Mark Jaquith’s … Read more
Have you considered wpmu_delete_blog? http://codex.wordpress.org/Function_Reference/wpmu_delete_blog
I was using WordPress Multisite for multiple TLDs. Example: domain.com another-domain.org sample-domain.net The primary site was domain.com which was a valid registered domain name with proper DNS resolution. another-domain.org and sample-domain.net had both expired domain name registrations. A/K/A – The DNS wasn’t resolving properly. If you’ve got a WordPress Multisite setup similarly to mine, where … Read more
You could probably manipulate the option with wp option update but you shouldn’t. It has plenty of dedicated commands for plugins, in your case it would probably be something like wp plugin activate active-directory-integration,disable-comments,http-authentication –url=blogs.my.domain/test1.
You don’t need to check is_admin because the function is hooked to admin_init, so is_admin() is always true in the callback; that makes that ( is_admin() || !empty(DOING_AJAX) ) always verify as true. You only need to check if the constant DOING_AJAX is not defined or if it is defined and it is false (both … Read more
Regarding the update part in your question: I think the problem here is that you’re missing the number of accepted arguments in your add_action() setup. If you check out the Codex, the usage is: add_action( $hook, $function_to_add, $priority, $accepted_args ); where by default $priority = 10 and $accepted_args = 1. So your code snippet should … Read more
This is one way how to get the postmeta of the posts, by joining the postmeta table and fetching the _wp_attached_file meta value. Try this: $mydb->get_results( select a.*, thumb.meta_value from wp_posts a left join (select b.post_id, c.meta_value from wp_postmeta b, wp_postmeta c where b.meta_key = ‘_thumbnail_id’ and b.meta_value = c.post_id and c.meta_key = ‘_wp_attached_file’) as … Read more