Multisite get_home_url(); – Getting URL for current site
I would recommend you use home_url() to get the URL to the front page of the currently viewed site. If you want to get the main site URL (the network home), use network_home_url().
I would recommend you use home_url() to get the URL to the front page of the currently viewed site. If you want to get the main site URL (the network home), use network_home_url().
To expand on my answer in the comments. “DEFINES” are constants that can only be defined once. If you could change the value of a constant, then it wouldn’t be a ‘constant’. So, the issue is that once defined, the constants that you added cannot be redefined to other values. It is not clear from … Read more
You can try using the Genesis-Wordpress(Note: not the framework) project for this. It does more or less what you have described above including, Provisioning (with Ansible) Deployment (with Capistrano) Database Synchronization (with custom Capistrano tasks) It also uses the Vagrant Host Manager to workaround the /etc/hosts issue. So the site is served over port 80. … Read more
I think separate language site is better in most case, until better auto-translation technology appear. MultiSite Language Switcher plugin is a good plugin for this purpose. Media can be linked by url, you can even use external/dedicated site for storage block. If necessary, and there’s no main storage limitations simply create rsync cron to copy … Read more
I’m in a similar process and so far the redirects work fine for me. Maybe have a look at the following issue Changing subdir multisite install to subdir core directory structure and see how they resolved it.
You should be able to move WordPress multi-site the same way you would any other WordPress site. Assuming your development environment is similar to production then yes. Moving a WPMU isn’t hard but can be tricky. The Codex has pretty good documentation on how to do this. If you try with the command line and … Read more
I’ve ruled out this being an issue with Advanced Custom Fields, so I’ve made a new question. For more information, please look at: wp_get_attachment_image_src multisite issue
You could make a sub folder install for each type of animal. To do this you need to create a folder in the root of your server called apes and another one called cats and than transfer the wordpress files to each of these folders and install. This way you can have two subsites within … Read more
If you choose subdomains, then you will have to configure wildcard subdomains on your server. That is pretty much going to be the end of your current subdomains. Well, not entirely. If you configure sub1.domain.at and sub2.domain.at before *.domain.at then sub1 and sub2 should probably still work. However, you cannot WordPress and another system running … Read more
You can not stop anything which do not have an explicit option to be stopped. In this case, actions are a mean to execute some additional code in the context of a specific execution path, and not to alter it. If there is no way to signal to the process to stop, than the only … Read more