fburatti
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate X] Small bug with the gallery shortcodeit is the standard shortcode
[gallery link = "file" size = "medium" columns = "4" ids = "112,111,121,110,120,122"]
With all other shortcode (also custom) I have no problems.Forum: Plugins
In reply to: [qTranslate X] Change flags icon to "EN" and "ES"Allow debugging to know which errors occur:
open wp-config.php and change:
define('WP_DEBUG', true);
then write here the errors reported
Forum: Plugins
In reply to: [qTranslate X] Small bug with the gallery shortcodeThe problem also occurs with the beta version of qtranslate-x, I just tried it, even replacing my theme.
Forum: Plugins
In reply to: [qTranslate X] Change flags icon to "EN" and "ES"no.
try this, is a modified version of the original function, must work (with short language names changes only) with the last release of qtranslate-x:
Put this code in your functions.php: https://gist.github.com/fburatti/794a37c4d1983041b68a
then place in the header
<?php qtranxf_custom_language_chooser('text'); ?>
Forum: Plugins
In reply to: [qTranslate X] Change flags icon to "EN" and "ES"Put the code above in your theme functions.php:
the call in your header.php:
qtranxf_generatecustomLanguageSelectCode($text);
Forum: Plugins
In reply to: [qTranslate X] Small bug with the gallery shortcodeno ?? if I uninstall qtranslate-x the problem does not occur.
Forum: Plugins
In reply to: [qTranslate X] Change flags icon to "EN" and "ES"This is my custom function:
function qtranxf_generatecustomLanguageSelectCode($style='') { global $q_config; if($style=='') $style='text'; $flag_location=qtranxf_flag_location(); if(is_404()) $url = get_option('home'); else $url = ''; echo '<ul class="nav navbar-nav navbar-right qtranxs_language_chooser">'; foreach(qtranxf_getSortedLanguages() as $language) { $classes = array('lang-'.$language); if($language == $q_config['language']) $classes[] = 'active'; echo '<li class="'. implode(' ', $classes) .'"><a href="'.qtranxf_convertURL($url, $language, false, true).'"'; // set hreflang echo ' hreflang="'.$language.'"'; echo ' title="'.$q_config['language_name'][$language].'"'; if($style=='image' || $style=='both' ) echo '<img src="'.$flag_location.$q_config['flag'][$language].'"/>'; echo '<span'; if($style=='image') echo ' style="display:none"'; echo '>'.$language.'</span>'; echo '</a></li>'; } echo '</ul>'; }
Remember, inside the function “qtrans_generateLanguageSelectCode()”:
$q_config['language_name'][$language]
-> language text (example english)
$language
-> language code (example en)Forum: Plugins
In reply to: [qTranslate X] ACF problem with qTranslate X – NEWI’m trying to use the plugins together and with the addition of the new version of ACF-Qtranslate, now almost everything seems to work, imho. I posted on github some bugs that I have found.
Forum: Plugins
In reply to: [mqTranslate] Visual Editor not working on WP 3.9.1This work form me!
Forum: Plugins
In reply to: [mqTranslate] Adding Content to WYSIWYG dupes in native WP Content EditorI confirm it works great!
wp 4.0
acf qtranslate 1.4
acf 4.3.8it would be nice if the plugin author would update the source with these changes!
Forum: Plugins
In reply to: [Categories Images] Can't delete the Featured Image once establishedthe problem is in
$ attachment_id = z_get_attachment_id_by_url ($ taxonomy_image_url);
(line 183) that returns an id although $ taxonomy_image_url is empty.I solved it:
$taxonomy_image_url = get_option('z_taxonomy_image'.$term_id); if(!empty($taxonomy_image_url)) { $attachment_id = z_get_attachment_id_by_url($taxonomy_image_url); if (empty($size)) $size = 'full'; $taxonomy_image_url = wp_get_attachment_image_src($attachment_id, $size); $taxonomy_image_url = $taxonomy_image_url[0]; }
great plugin!
compared to my code which used advanced custom fields to obtain image on taxonomies, I have saved a lot of query with categories images!
Forum: Plugins
In reply to: [mqTranslate] mqTranslate and Advanced Custom Fieldsmaybe it’s the right way, but I’m not been able to solve the problem with ACF Wysiwyg field. Otherwise the 2 plugins seem to work well together.
However, I’m considering switching to WPML which, however, is not free from problems with advanced custom field, as reported in various support resources.
Forum: Plugins
In reply to: [Post Types Order] fatal errorThanks for support
Good point for the memory limit, but I also want to take a look at Advanced Post Types OrderForum: Plugins
In reply to: [Inline Attachments] Tab Media LibraryYour post that you linked is ok, but I had already done this, my problem is not How “Displaying the Post Attachments in front end” ! ??
In the inline attachments option screen, I select the tab “media library”, which is displayed correctly, but I can’t attach images from media library, inline attachments only allows me to upload new photos.
thanks!
line 19 replace
wp_enqueue_script( 'my-ajax-request', plugin_dir_url( __FILE__ ) . 'widgets_controller.js', array( 'jquery' ) ); wp_localize_script( 'my-ajax-request', 'MyAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );
with
add_action('admin_enqueue_scripts','register_my_scripts'); function register_my_scripts(){ wp_enqueue_script( 'my-ajax-request', plugin_dir_url( __FILE__ ) . 'widgets_controller.js', array( 'jquery' ) ); wp_localize_script( 'my-ajax-request', 'MyAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); }