localization for Permalink

Under permalink settings you want to use Custom Structure you can then customise it using the structure tags see http://codex.wordpress.org/Using_Permalinks#Structure_Tags this would allow you to add post id and author to the permalink for example. /%year%/%monthnum%/%day%/%postname%/%postid%/%author%/ All depending on what you need if you can be more specific about what you mean by native numbers … Read more

Why is setlocale() returning false on WPEngine?

The issue with setlocale() is not the function itself. It is that WPEngine only has English language locales installed (the complete list is below) and cannot realistically install any other locales. Because I needed to just print some Spanish language dates (not change the entire WordPress installation to Spanish), I wound up creating an array … Read more

Translating form labels shortcode output

If anyone is looking for a solution, here is a way (probably not the better one) to achieve it: add_filter(‘widget_text’, ‘filtering_form_labels’); function filtering_form_labels($html) { if ( ICL_LANGUAGE_CODE==’en’ ) {/*ICL_LANGUAGE_CODE used in WPML to know the active language*/ $esp = array(‘Nombre’, ‘Apellidos’, ‘Suscribirse’); /*Array with words to be replaced*/ $eng = array(‘First Name’, ‘Last Name’, ‘Subscribe’); … Read more