titi5895
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] PHP Fatal error with 1.7.3.1Problem solved !
Thanks you so much for your reply.
Forum: Plugins
In reply to: [Yoast SEO] PHP Fatal error with 1.7.3.1Hi,
Can anyone help with this?
I use it in header.php to get the wpseo metadesc in $seo_desc :
$object = new WPSEO_Frontend(); $seo_desc = $object->metadesc( false );
Thank you
Forum: Plugins
In reply to: [Multisite Language Switcher] get current Tag Page translationHi Dennis,
Thanks for your answer.
For post, page and custom post I store urls into an array so I can’t use the standard functionality, what why I try with MslsOptionsPost.
Finaly I used MslsContentTypes::create(); as you suggesting, thanks.
If this may help someone :
$temp = array(); $blogs = MslsBlogCollection::instance(); $obj = MslsContentTypes::create(); $msls_data = new MslsOptionsTax( $tag_id ); foreach ( $blogs->get_filtered() as $blog ) { if ( $blog->userblog_id != $blogs->get_current_blog_id() ) { $language = $blog->get_language(); switch_to_blog( $blog->userblog_id ); $temp[$language] = $msls_data->get_permalink( $language ); restore_current_blog(); } }
Forum: Plugins
In reply to: [Multisite Language Switcher] Errors displayed with debug modeok
Thanks a lot Dennis !
Forum: Plugins
In reply to: [Multisite Language Switcher] Get page/post translations (continuation)it works perfectly
Thanks a lot Dennis !
Forum: Networking WordPress
In reply to: url_to_postid() with multisiteok thanks anyway Mika
Forum: Networking WordPress
In reply to: url_to_postid() with multisiteHi Mika,
My Network is a multilingual multisite-installation.
In header.php I call the get_additional_flags_trad () function of functions.php file.
This function allows me to add an additional flag to my flags list already displayed.
During the display of these flags as soon as I arrive at the Canadian flag (which refers to the English translation), I called get_additional_flags_trad () to display another Canadian flag which refers to the French translation.
To display the French translation url, I have to know the English translation id.
My problem is that, I don’t have this id (En) I only have url
So I wish to use url_to_postid ().My Canadian blog is the blog # 18, when I display Canadian flags I’m not on this blog (18).
That’s why I try to use the url_to_postid () preceded by a switch_to_blog (18);
$blog is defined by a switch :
switch ($sous_dom_link) { case "be": $blog ='3'; break; case "ch": $blog ='4'; break; case "ca": $blog ='18'; break; }
Forum: Networking WordPress
In reply to: How to make an Admin a SuperAdminIn Network Admin > Users > Your Friend Username >
You can check line :
Super Admin Grant this user super admin privileges for the Network.(below the Username field)
Forum: Plugins
In reply to: [Multisite Language Switcher] Get page/post translationsThis code works very well !
Thanks a lot Dennis
Forum: Plugins
In reply to: [Multisite Language Switcher] Get page/post translationsI found the error my function that returns the post id was wrong.
$temp is no longer empty but for all languages it contains the current url
[de_DE] => https://de.site.com/post/
[en_GB] => https://de.site.com/post/
[es_ES] => https://de.site.com/post/
[fi] => https://de.site.com/post/
[fr_FR] => https://de.site.com/post/
[it_IT] => https://de.site.com/post/
[pt_PT] => https://de.site.com/post/Forum: Plugins
In reply to: [Multisite Language Switcher] Get page/post translations[Edit] For posts $temp stays empty but for pages $temp contains the current url (in every lines)
Forum: Plugins
In reply to: [Multisite Language Switcher] Get page/post translationsHi Dennis,
Thanks for your answers.
I tried you code but nothing happened, $temp stays empty.
Have you any idea what’s wrong?
Thank you for your help