• I followed instructions given to hippio in another thread to make url-links work in different languages, but i’m not able to manage it. i’m not sure where to insert the filter described by author:

    add_filter( 'wpgcl_filter_raw_gallery_link_url', 'my_gallery_link_url_filter', 10, 3 );
    function my_gallery_link_url_filter( $link, $attachment_id, $post_id ) { return qtrans_convertURL( $link ); }

    i already changed the value of qtrans to ppqtrans, as the translation plugin has changed.
    usually i use [:en], [:es], etc to define target language, but for some reason it does not work.
    anyone with similar issue ?

    https://www.ads-software.com/plugins/wp-gallery-custom-links/

Viewing 1 replies (of 1 total)
  • I would suggest doing some separate standalone testing with the URLs you want to link to and translation function you’re trying to use to modify them. For example:

    echo qtrans_convertURL( '/some/link/to/test/' );

    in a template file or something and see what it returns to make sure it’s what you’re expecting. That way you can determine if it’s a problem with the function or WP Gallery Custom Links.

Viewing 1 replies (of 1 total)
  • The topic ‘link to same language with qtranslate Plus’ is closed to new replies.