New answers tagged

0

So, I've managed to achieve a version of this by setting the "home" value in Network admin > Sites > Edit > Settings to: http://example.com/custom-word/multisite-name In my case the custom word is the unique identifier for the multisite, so I had to swap the positions of the word and the name.


1

I figured this out right after I posted the question but thought it would help someone who ran into the same issue. I have to go to: Network Admin -> Sites -> edit a site -> Settings -> change "site url" and "home"


0

Wordpress redirects to the URL you gave it when you set it up. So if you told Wordpress you domain was www.domain.com and typed into the browser domain.com it would redirect to www.domain.com. This is expected. The only way to change that is to change it in the database. You can find the URL in two places in the _options table. Field names are home and ...


3

As @AntonChanning said, a multisite installation in WordPress is called a Network. You can easily create a network following the instructions in the codex. You can choose to work with subdomains or with subdirectories, like you want I guess!


1

After a little bit of trial and error, I finally got my code to work. This will redirect http://example.com/wp-admin/plugins to http://example.com/wp-admin/admin.php?page=pretty-plugins.php if the current user doesn't have access to update core. add_action( 'admin_menu', 'block_direct_plugin_page_access' ); function block_direct_plugin_page_access() { ...


1

When I move domains and have to change the domain in the database, I use interconnectit's Search and Replace tool. Here is a very brief overview of the process. Export the database and upload it to the new server. Upload interconnectit's Search and Replace tool to the new server. Configure what I want to be replaced in the databases with the tool's GUI ...


0

Create a plugin for the mu-plugins directory and have your function run when the wpmu_new_blog action fires. Reference, here: https://codex.wordpress.org/Plugin_API/Action_Reference/wpmu_new_blog The hook you cited for ACF seems to be the way you ought to run you function, if you want that to happen upon ACF save...


7

As @tom-j-nowell said in comment to OP, multisite can make this easier. Performance and security are not really a problem for multisite (at least, not more than they are for regular installations), but I do agree that multisite can sometimes be a problem, because a lot of plugins (either custom or 3rd party) may not work properly on multisite, or maybe ...


0

If I understand correctly you have main web site which is not WordPress, but you want to implement WordPress Blog inside it, and create premalinks/categories as you described. If I were handling this requirement, I would go about it by installing separated WP instance on subdomain, such as blog.example.com , and then create categories like this blog....


2

As per the instructions for setting up WordPress MU Domain Mapping, sunrise.php needs to be placed directly in your /wp-content directory. It's not a plugin in the traditional sense, so can't be placed in mu-plugins (or even plugins for that matter). Setting up this plugin can take a bit of manual work so take care to follow the instructions carefully, ...



Top 50 recent answers are included