Translate custom template with WPML

To translate custom page templates you must select “Synchronize page template” in WPML options. For it to actually work the page template markup must be localized or internationalized using a recognized format, for example http://codex.wordpress.org/I18n_for_WordPress_Developers, and then have an accompanying .mo/.po file . WPML also has an addon called “String Translation module” which can scan … Read more

WP-e-commerce (getshopped) – Annoying permalink issue [closed]

Apologies, I find this a little bit a non-issue as it states clearly everywhere that WPML works 100% when you use a permalinks structure of day and name (http://domain.com/2012/02/07/sample-post/). If this is something you cannot accept, then you’s better come to terms with the fact that WPML most likely is not going to work 100% … Read more

WPML icl_register_string() throws fatal error but works [closed]

You should always use the wpml functions as following: (the HowTo linked by you actually suggests this 🙂 if( function_exists(‘icl_register_string’) ) { icl_register_string( ‘Match Previous Order’ , ‘match_order’, ‘Do you want these items to match a previous order from Direct Linen? If yes, use “Additional Notes” to explain.’ ); } This will ensure that you … Read more

How to display WP Query filters?

There’s a global variable called $wp_filter (you can see examples of it all through the source of /wp-includes/plugin.php. This probably isn’t the WordPress Way to do it, but you could try something like this: global $wp_filter; var_dump( $wp_filter ); …but note the caveat on http://codex.wordpress.org/Global_Variables — “Accessing other globals besides the ones listed below is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)