szed
Forum Replies Created
-
Thanks a lot!
Forum: Plugins
In reply to: [Multisite Cloner] WPML fatal error on main site after cloning a child site.I saw that yes.
But it seems to be triggererd during the clone process.If it is the case, it would be nice to have a compatibility with WPML ans know why it happens.
I will ask the wpml support too.
Thanks.
Forum: Plugins
In reply to: [The Events Calendar] WP Network – Retrieve event on main siteThanks GeoffBel,
i fnid my way with https://srd.www.ads-software.com/plugins/threewp-broadcast/ ??
Forum: Plugins
In reply to: [Polylang] Create lang in phpOk,
i did it with$installEN = $PLL_Admin_Model->add_language($args_EN); global $wp_settings_errors; $wp_settings_errors= ''; $installFR = $PLL_Admin_Model->add_language($args_FR);
Forum: Plugins
In reply to: [Polylang] Create lang in phpHi !
I’m close.Adding one language work.
But i can’t add two because of the “add_settings_error( ‘general’, ‘pll_languages_created’, __( ‘Language added.’, ‘polylang’ ), ‘updated’ );” applied to first language.When i call add_language for my second lang, add_language start by the validade_lang function which return false because of this previous add_settings_error.
Any idea how to do this, without editing your plugin ?
I am looking for something like renove_settings_error which i could call between my two add_language…Thanks !
Forum: Plugins
In reply to: [Polylang] Create lang in phpThanks !
I triedif ( class_exists('PLL_Admin_Model') ) { $PLL_Admin_Model = new PLL_Admin_Model; $args_FR = array( 'name' => 'Fran?ais', 'slug' => 'fr', 'locale' => 'fr_FR', 'rtl' => '0', 'term_group' => '0' ); $args_EN = array( 'name' => 'English', 'slug' => 'en', 'locale' => 'en_GB', 'rtl' => '0', 'term_group' => '0' ); if($lang_default && $lang_default == 'fr'){ $lang = $PLL_Admin_Model->add_language($args_FR); $lang = $PLL_Admin_Model->add_language($args_EN); } else { $lang = $PLL_Admin_Model->add_language($args_EN); $lang = $PLL_Admin_Model->add_language($args_FR); } }
But i got a lot of warning :
Warning: Missing argument 1 for PLL_Model::__construct(), called in /home/****/public_html/wp-content/plugins/ngfnetwork/*****.php on line 483 and defined in /home/****/public_html/wp-content/plugins/polylang/include/model.php on line 20
Notice: Undefined index: default_lang in /home/*****/public_html/wp-content/plugins/polylang/include/links-directory.php on line 117
then a message
Polylang has been deactivated because you upgraded from a too old version.
Please upgrade first to 0.9.8 before ugrading to 1.8.4.??
Forum: Fixing WordPress
In reply to: Insert category of taxonomy between custom post type and postHi guys!
Great works, but i’m looking for something a little more…advanced ??
I would like to have the parent taxonomy (categorie of portfolio in my case) into the URL.
Actually, with your help, i got :
/portfolio/hobby/project-11/ which is already a nice trick ??
I woull like to have something like this, i check the “hobby” category for my project :
/portfolio/hobby-parent1/hobby-parent2/hobby/project-11/Someone ? ??
Thanks !
Forum: Plugins
In reply to: [WooCommerce] Variable product – Add to cart hidden – Javascript error !Resolved.
Forum: Plugins
In reply to: [WooCommerce] Variable product – Add to cart hidden – Javascript error !Thanks for the reply ! I solved the problem one hour ago ??
It was a problems of ovveride template + anhoter plugins.