Hi, How difficult would be to make it work for custom post types?
]]>Hello there
What is the correct way to import blogs using wp cli?
I’d like to import all the blogs in a single pass. But a single blog
wp multisite_aggregate aggregate_blog_id=3
gives
Error: ‘aggregate_blog_id=3’ is not a registered subcommand of ‘multisite_aggregate’. See ‘wp help multisite_aggregate’ for available subcommands. Did you mean ‘aggregate_blog_id’?
and
wp multisite_aggregate aggregate_blog_id
without parameters, just bombs out …
Notice: Trying to get property of non-object in /Users/pi/Documents/Websites/divitests.dev.cc/wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_CLI.php on line 87
Fatal error: Uncaught Error: Call to a member function get() on null in /Users/pi/Documents/Websites/divitests.dev.cc/wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_CLI.php:63
Stack trace:
#0 [internal function]: WDS_Multisite_Aggregate_CLI->aggregate_blog_id(Array, Array)
#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(89): call_user_func(Array, Array, Array)
#2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(425): call_user_func(Object(Closure), Array, Array)
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(365): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(388): WP_CLI\Runner->run_command(Array, Array)
#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1113): WP_CLI\Runner->_run_command_and_ex in /Users/pi/Documents/Websites/divitests.dev.cc/wp-content/plugins/wds-multisite-aggregate/includes/WDS_Multisite_Aggregate_CLI.php on line 63
Am I missing something?
Also the ../includes/WDS_Multisite_Aggregate_CLI.php implies blog_id should be used but this may be a typo
* ## EXAMPLES
* wp multisite_aggregate blog_id=1
I have been relying on the predecessor wordpress-mu-sitewide-tags, from which this plugin is forked, but this implementation is obviously quite a lot better and may permit an almost seamless transition …
Thanks
]]>I’ve been using MU Sitewide Tags on my NW for years. Any reason to switch to this? Any issues switching?
]]>Please help me to add image on main blog my website is jounalib.com
]]>This plugin is really nice, good job guys!
There’s only one bug, it’s not bringing the featured image. Anyone experiencing this?
One suggestion to make this plugin perfect. When you update the child post it updates the parent post and vice versa.
https://www.ads-software.com/plugins/wds-multisite-aggregate/
]]>Not sure if this is really an issue so but I wanted to bring it up as possibly something to discuss or have logged for anyone with the potential future issue – I was attempting to use this plugin on a local set up and kept getting a “Undefined variable: wpdb” on like 516 whenever I tried to create a new post in any of my sites in the multisite – so I added a “global $wpdb;” as follows: (begins line 514)
protected function get_blogs_to_import() {
global $wpdb;
if ( $this->options->get( 'populate_all_blogs' ) ) {
return $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs ORDER BY blog_id DESC" );
}
// 'all blogs' not checked? check the blogs_to_import option
return $this->options->get( 'blogs_to_import', array() );
}
https://www.ads-software.com/plugins/wds-multisite-aggregate/
]]>