Hi macdonaldr93, thanks for using this plugin!
you mean GET variables ( i.e. ?somevar=value& … ) or query variables from the $wp_query itself?
No problem! It’s a great plugin; I’ve used it on a bunch of projects.
And GET variables. For example:
http://www.mywebsite.com/testpage?RandomVar=Test
I’m using get_query_var(‘RandomVar’) to retrieve the value Test but when qTranslate slug is enabled, it returns empty.
Hi Pedro,
Just checking back in on this. Have you had a chance to look into this issue?
Thanks!
Anonymous User 13812167
(@anonymized-13812167)
Has anyone looked further into this? I have the same problem with the current versions of WP, qtranslate-slug, qtranslate-X.
I was able to determine that the problems lies in filter_request function of this plugin. On the lines 987-989 of class-qtranslate-slug.php file.
if((isset($wp->matched_query) || empty($query)) && ! isset($query['s']) ) {
$query = wp_parse_args($wp->matched_query);
}
Commenting this one out seems to fix the problem. As far as I understand $wp->matched_query holds query string up until ? appears. Namely query without custom variables.
Hi there I got the same problem. Talking to qTranslate-X author … we figure out the problem is Qtranslate Slug issue. But still can’t figure out a solution but disable “Qtranslate Slug” π
Any help? Don’t want to touch core files but if there is no option … i’ll do that …
Thanks in advance.
EDIT ——————————
Doing aliuskon suggestion i got several 404 error pages every time i change language. So sad … π
Yeah, I haven’t heard anything new about this and I haven’t really had time to dive into a solution. No one else has any sort of temporary fix?
auch, has it been 6 months already?
everyone, I’ll have a look tonight!
Wow! Thanks so much. We really appreciate it.
hi everyone!
would you mind testing the latest version from github?
https://github.com/not-only-code/qtranslate-slug
Hi.
Having the same issue. It was there with the verion from the github in the latest post as well. Any update on this?
Many thanks
Hi everyone!
can you please test the latest version on github?
i believe it is fixed, but please let me know what you think:
https://github.com/not-only-code/qtranslate-slug
thanks!
For sure. I’m hoping to get around to testing this week. Thanks for this!