Moving 2 wordpress sites to one

I’d use the export tool but split the files using a tool like http://rangerpretzel.com/content/view/20/1/ You may need to check everything individually to make sure there’s no conflicts like same name categories, tags and usernames. Check posts, pages, comments, custom fields, terms, navigation menus and custom posts for potential conflicts. You may want to set these … Read more

Adapting a php array to WordPress

Here is some code; you need to see that the $current_user variable is actually an object and not an array ( USE $current_user->user_login AND NOT $current_user[‘user_login’] ). I also added a simple check to make sure the user is logged in. // Set the Query POST parameters – array $query_vals = array( ‘api_username’ => ‘api-username-goes-here’, … Read more

Create XML sitemap in wordpress

Latest versions of wordpress (since 5.2 IIRC) have the sitemap generation as part of the core functionallity. Plugins or code are not needed unless you need to customize its generation

Serve content from centralized location

On your master site, register a new XML RPC method that accepts a date argument and replies back with all content published since then. For each of your drone sites, register a cron hook that pings the master every X minutes/hours with the date of the most recently “imported” content, and then saves the response … Read more