WordPress language problem

Upload your danish language files (da_DK.mo and da_DK.po) in your wp-content/langauges/ folder on your webserver. Then edit the wp-config.php in your root folder This define (‘WPLANG’, ”); should be changed in define (‘WPLANG’, ‘da_DK’);

Language selection for blog doesn’t exist?

Well, thanks to a suggestion from one of my mates I resolved the more critical problem (2) of the Hebrew text displaying in gibberish. All I needed to do was to re-encode the files as UTF-8 without BOM (they were encoded as UTF-8 (plain)). I re-uploaded these files to the server and Voila, everything was … Read more

Use specific language for comment section

On the bottom of comments.php I use the following code: <?php comment_form(array(‘comment_field’ => ‘<p class=”comment-form-comment”><label for=”comment”>Comment</label><textarea id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’, ‘comment_notes_before’ => ‘<p class=”comment-notes”>Your email address will not be published. Required fields are marked *</p>’, ‘comment_notes_after’ => ”, ‘title_reply’ => ‘Leave a Reply’, ‘title_reply_to’ => ‘Leave a Reply to %s’, ‘label_submit’ => ‘Post comment’, … Read more

How to use Greek characters/letters in a query?

This is the loop I’ve created to display post’s matching criteria on empty page: // get results $the_query = new WP_Query( ‘meta_key=apaitei_logariasmo_facebook&meta_value=Ναι’ ); // The Loop if( $the_query->have_posts() ) while ( $the_query->have_posts() ) { $the_query->the_post(); echo ‘<h3>’; the_title(); echo ‘</h3>’; the_content(); } wp_reset_postdata(); It works. Look at the image: Note: my site’s language is English … Read more

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