Pedro Carvalho
Forum Replies Created
-
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] Plugin not working..helpno bother at all! ?? looking at the site source, you should place it on your header.php.
how are you displaying your language menu?
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] Plugin not working..helphi aleguasp,
try this:
<?php if (function_exists('qts_language_menu') ) qts_language_menu('image'); ?>
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] Post is missing bugcan you provide more details?
what do you change in the slugs that make it work?
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] Plugin not working..helphow are you displaying the links? are you using the default qtranslate widget. you can use “qts_language_menu()” in your theme to display the right slugs.
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] small patchmarking this as resolved ??
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] small patchyeah i just got the email! awesome!
my aim now is to integrate with “Google XML Sitemaps v3 for qTranslate”.
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] small patchhi, its me again.
this time with a patch to remove a funcionality thats been bugging me:
allow the quick_edit link to be shown again
Although it doesn’t support the qtranslate-slug features,
it is still very useful for “quick editing”. For major changes,
like editing other languages slugs, the user should use the wp editor.https://github.com/verde/qtranslate-slug/commit/9c680e9ceffa55bf28ebef9707dd80eb255e424d.patch
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] equivalent of qtrans_convertURL()i’m using 2.5.30 but nevertheless, you’re right. its around 44 indeed.
hm does it look like this:
// set links to translations of current page 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"; } }
notice the
global $qtranslate_slug;
part.Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] equivalent of qtrans_convertURL()Hi matteo
in qtranslate_hooks.php, around line 489
look for this line:
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";
Forum: Fixing WordPress
In reply to: Add new data attribute into get_image_tag functionhei alvaro, you got a response in wp.se ??
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] Adaptations request list+1 for the “Google XML Sitemaps v3 for qTranslate” :))
Forum: Plugins
In reply to: [Qtranslate Slug] [Plugin: Qtranslate Slug] equivalent of qtrans_convertURL()works perfectly!
here’s my code to replace that line (around line 489)
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] [Plugin: Qtranslate Slug] equivalent of qtrans_convertURL()thanks Carlos for the quick reply.
that function was a nice little wrapper that all kinds of taxonomies and post types.
gonna try your suggestion and be right back to post the results.
ahhh! thanks scrp!
Forum: Plugins
In reply to: Need a specific multilanguage plugin.@lagerist
wp-config.php is at the main directory of your wordpress installation. “By hand” means that you must get acess to your server, and edit the file.
To do that, you must use a ftp client or ssh client. Open the file, edit that line, save … log out ??