Pedro Carvalho
Forum Replies Created
-
Forum: Plugins
In reply to: [Qtranslate Slug] Hreflang creates broken link 404well, i just tried the hack i posted earlier but this time on mqtranslate file. it now shows the right hreflang link.
i’ll try to come up with a solution using only this plugin.
thanks for reporting @elnino.
foreach($q_config['enabled_languages'] as $language) { if($language != qtrans_getLanguage()) { global $qtranslate_slug; $language_url = $qtranslate_slug->get_current_url($language); echo '<link hreflang="'.$language.'" href="'.$language_url.'" rel="alternate" />'."\n"; } }
Forum: Plugins
In reply to: [Qtranslate Slug] Hreflang creates broken link 404hi @elnino,
you need to use one or the other. disable qtranslate if you want to use mqtranslate.
Forum: Plugins
In reply to: [Qtranslate Slug] "Not available in this Language" fixRight, thanks!
Forum: Plugins
In reply to: [Qtranslate Slug] v1.1.6 | Separating "-" character not producedForum: Plugins
In reply to: [Qtranslate Slug] qtranslate slug selector unexpected behaviour\o/ great!
Forum: Plugins
In reply to: [Qtranslate Slug] v1.1.6 | Separating "-" character not producedhi, xflow, thanks for your report.
1.1.6 was a big milestone.
can you also test if this new version on github fixes your problem. i’ve tested on several wp ( 3.8.1 and 3.9.1 ) and it seems fixed:
https://github.com/not-only-code/qtranslate-slug/blob/trunk/qtranslate-slug.php
Forum: Plugins
In reply to: [Qtranslate Slug] Please add support for mqTranslatehi,
thanks for the heads up,
i’ve updated the plugin on github.
Going to leave this open until its updated here on wp.org
p.Forum: Plugins
In reply to: [mqTranslate] mqTranslate and Qtranslate Slug – any news?just to let you know that the plugin has been updated on github. hope to push it wp plugin directory soon.
Forum: Plugins
In reply to: [Qtranslate Slug] qtranslate slug selector unexpected behaviourhi everyone, i’m unofficially maintaining qtranslate-slug. i’ll update the plugin on github with the code provided. my initial testing was unsufficient and only today i’ve noticed the problem.
i don’t have access to the wp plugin directory so please, download the latest version from github.
Thanks for your help!
Please test it and let us know if any problems arise.
p.
Forum: Plugins
In reply to: [Qtranslate Slug] Hreflang creates broken link 404hi @elnino3838,
try to follow the instructions from my other post that you linked at the beginning:
in qtranslate_hooks.php,
Line 44:echo '<link hreflang="'.$language.'" href="'.qtrans_convertURL('',$language).'" rel="alternate" />'."\n";
and replace it with
global $qtranslate_slug; $language_url = $qtranslate_slug->get_current_url($language); echo '<link hreflang="'.$language.'" href="'.$language_url.'" rel="alternate" />'."\n";
don’t forget that if update qtranslate this changes will be lost
Forum: Plugins
In reply to: [Qtranslate Slug] Hreflang creates broken link 404Elnino, do you still need help with your issue?
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Compatibility with qTranslatesolala, have you tried to edit the frontend/class-frontend.php and replace the title() function with this?
function title( $title, $sepinput = ‘-‘, $seplocation = ” ) {
return $title;
}Timbuck two
Sorry, nothing to add to the discussion, but i really found this funny! ??
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Compatibility with qTranslatein the end, my solution was to get rid of all the contents in the title function; works for all of the 5 languages.
function title( $title, $sepinput = '-', $seplocation = '' ) { return $title; }
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] Plugin not working..helpaleguasp, you’ve called the function inside the
<div class="logo">
. move it outside and use your theme style.css to target the.qts-lang-menu li
selectors.let us know how it turned out.