"Support System" and WPML: [support-system-tickets-index] works only on 1 language

[support-system-tickets-index] works only on 1 language. On setting page, I have to set the Support Page. It works only on that page and not on translated pages

  • Konstantinos Xenos
    • Rubber Duck Debugger

    Hi Dimitri , sorry for the late reply.

    You can enable the shortcode on multiple pages by using this filter:

    add_filter( 'support_system_support_page_id', 'enable_extra_support_page');
    function enable_extra_support_page() {
    	if ( in_array( get_the_ID(), array( 2, 63 ), true ) ) {
    		return true;
    	}
    }

    You will have to adjust the array( 2, 63 ) in the code by adding your translated pages IDs, in this example my English Support page had an ID 2 and the Greek and ID 63 ( you can easily find the ID while editing the pages via your administrator and looking at the URL bar of your browser you will see a post=NUMBER indication where the number will be the ID we're looking to use here as well ).

    You can then process to the WPML String Translation and translate any strings you like.

    Tell me if you need further help with this, and if it's difficult for you to find the IDs please enable Support Access and tell me which is the 'original' page so I can find the IDs for you.

    Regards,
    Konstantinos

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.