Title: #TRPLINKPROCESSED
Last modified: March 29, 2020

---

# #TRPLINKPROCESSED

 *  Resolved [cognigence](https://wordpress.org/support/users/cognigence/)
 * (@cognigence)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/trplinkprocessed-2/)
 * Hi Support,
 * I have translate my website to multiple language by translatepress. While I am
   trying to change the another language and log into wp admin, The page does not
   direct to the admin dashboard, Instead it’s going to the [http://j6.cognigence.in/fr/wp-admin/#TRPLINKPROCESSED](http://j6.cognigence.in/fr/wp-admin/#TRPLINKPROCESSED)
   
   and it’s an error page. [http://prntscr.com/rovtyb](http://prntscr.com/rovtyb)
   My base language is english, but i want my site to be loaded in french initially.
 * I cant fix this issue. Would you please advise the way to solve this issue?
 * Thanks,
    Anas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftrplinkprocessed-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Dragos](https://wordpress.org/support/users/dragosvrejiu/)
 * (@dragosvrejiu)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/trplinkprocessed-2/#post-12605538)
 * Hello Anas,
 * Thank you for getting in touch.
 * WP doesn’t accept to insert tags into the post links.
    You can create a mini 
   plugin with which you can ignore the desired link.
 * Create an empty plugin like this: [https://gist.github.com/sareiodata/76f701e01db6685829db](https://gist.github.com/sareiodata/76f701e01db6685829db)
   
   Add the following code to the end of it:
 *     ```
       /*
       * Don't add the language slug in a custom added link.
       * This function prevents custom added URLs from being processed when the Force Language in Custom Links option is set to Yes
       *
       * This does not prevent the page from showing the language switcher.
       * It also does not prevent the translation of the page.
       */
       add_filter( 'trp_force_custom_links', 'trpc_ignore_url', 10, 4 );
       function trpc_ignore_url( $translated_url, $url, $language, $a_href ){
       $link_to_ignore = "https://www.example.com/enchanced"; // url to ignore.
       if ( strpos( $url, $link_to_ignore) !== false ){
       return $url;
       }
       return $translated_url;
       }
       ```
   
 * Edit $link_to_ignore = “[https://www.example.com/enchanced&#8221](https://www.example.com/enchanced&#8221);;
   with your desired link address (without language slug in it).
 * Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip
   archive with it and install it via the WordPress plugin upload functionality.
 * If you want another language to be the first language, then simply enable:
 * * Use TranslatePress -> Settings -> Subdirectory for default language -> Yes
   *
   Reorder the languages
 * Kind regards,
 *  [hamzatopo17](https://wordpress.org/support/users/hamzatopo17/)
 * (@hamzatopo17)
 * [6 years ago](https://wordpress.org/support/topic/trplinkprocessed-2/#post-12956275)
 * does it works for you ;i created an empty plugin and adding the code mentioned
   before .
    but the installation of plugin doesn’t work !
 *  [hamzatopo17](https://wordpress.org/support/users/hamzatopo17/)
 * (@hamzatopo17)
 * [6 years ago](https://wordpress.org/support/topic/trplinkprocessed-2/#post-12956335)
 * // Start writing code after this line!
 * add_filter( ‘trp_force_custom_links’, ‘trpc_ignore_url’, 10, 4 );
    function trpc_ignore_url(
   $translated_url, $url, $language, $a_href ){ $link_to_ignore = ‘[http://trolly.njt-group.com/wp-admin/#TRPLINKPROCESSED&#8217](http://trolly.njt-group.com/wp-admin/#TRPLINKPROCESSED&#8217);;//
   url to ignore. if ( strpos( $url, $link_to_ignore) !== false ){ return $url; }
   return $translated_url; }
 *  Thread Starter [cognigence](https://wordpress.org/support/users/cognigence/)
 * (@cognigence)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/trplinkprocessed-2/#post-13260242)
 * It’s not solved yet.
 * <?php
    /** * Plugin Name: Name Of The Plugin * Plugin URI: [http://URI_Of_Page_Describing_Plugin_and_Updates](http://URI_Of_Page_Describing_Plugin_and_Updates)*
   Description: A brief description of the Plugin. * Version: The Plugin’s Version
   Number, e.g.: 1.0 * Author: Name Of The Plugin Author * Author URI: [http://URI_Of_The_Plugin_Author](http://URI_Of_The_Plugin_Author)*
   License: A “Slug” license name e.g. GPL2 */
 * // Start writing code after this line!
 * add_filter( ‘trp_force_custom_links’, ‘trpc_ignore_url’, 10, 4 );
    function trpc_ignore_url(
   $translated_url, $url, $language, $a_href ){ $link_to_ignore = ‘http://brand-
   valley.com/wp-admin/#TRPLINKPROCESSED;; // url to ignore. if ( strpos( $url, 
   $link_to_ignore) !== false ){ return $url; } return $translated_url; }
 * This is the code i’ve pasted, Not solved yet. still goes to page error with trplinkprocessed.
   Please help me out
 *  [Dragos](https://wordpress.org/support/users/dragosvrejiu/)
 * (@dragosvrejiu)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/trplinkprocessed-2/#post-13269181)
 * Hello [@cognigence](https://wordpress.org/support/users/cognigence/),
 * Try replacing `$link_to_ignore = ‘http://brand-valley.com/wp-admin/#TRPLINKPROCESSED;;`
   with `$link_to_ignore = ‘http://brand-valley.com/wp-admin'`.
 * Let me know if this works.
 * Best regards,
 *  Thread Starter [cognigence](https://wordpress.org/support/users/cognigence/)
 * (@cognigence)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/trplinkprocessed-2/#post-13353257)
 * Not working.
 * [Here’s the image](https://prnt.sc/uajgqb).
 * Getting this error when i try to activate the plugin.
    Parse error: syntax error,
   unexpected ‘:’ in /var/www/wptbox/wp-content/plugins/Language Login Error Fixer/
   empty-wp-plugin.php on line 41

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘#TRPLINKPROCESSED’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [cognigence](https://wordpress.org/support/users/cognigence/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/trplinkprocessed-2/#post-13353257)
 * Status: resolved