Categoria Blog

Tradurre la descrizione autore con Qtranslate

Per tradurre la descrizione autore con Qtranslate, incolla le seguenti righe di codice add_filter( ‘get_the_author_meta’, ‘qtranslate_author_descr’ ); add_filter( ‘get_the_author_description’, ‘qtranslate_author_descr’ ); function qtranslate_author_descr( $descr ) { global $post; $description = get_post_meta( $post->ID, ‘qtranslate_author_descr’, true ); if ( $description ) $descr = $description; return __($descr); }

How to use qtranslateX inside shortcodes.

Qtranslate for me, is one of the most useful language plugins for wordpress, so it comes the time when you’ll want to translate text inside shortcodes. It’s really simple, we take as example my Inventive video plugin inventive-play-video youtube_url = “FsUXOeCTykA” height = “150px” video_message=”Watch Inventive 3d world trailer” close_message=”Close trailer” As you can see, […]