Posts Tagged ‘Code’

Don’t use strlen()
WPengineer Misc | March 29th, 2012 | by Thomas | 16 Comments
Each time I see someone use strlen() I cringe. It will break. Despite its name, strlen() doesn’t count characters. It counts bytes. In UTF-8 a character may be up to four bytes long. So what... read more...

Best Practice for Multilanguage WordPress Content? New Plugin!
WordPress Tutorials | December 24th, 2011 | by Frank | 27 Comments
Since the beginning of WordPress the desire to publish the content in different languages is huge. But the topic can quickly become complex, because not only the rendering of content in the form of text... read more...

Separate Logic From Output
WordPress Tutorials | December 23rd, 2011 | by Frank | 2 Comments
Once HTML is defined within a function for output, the HTML will be separated from the logic! In this case the function is defined twice. A function contains only logic and values are returned only... read more...

Adding Custom Fields to WordPress User Profile
WordPress Hacks | December 22nd, 2011 | by Frank | 11 Comments
The user profile of WordPress can be fairly easily adapted to add your own values. So you can add the necessary fields according to your requirements. Here is how you do it, we add a... read more...

Restrict Mime Types on WordPress Media Upload
WordPress Plugins | December 17th, 2011 | by Frank | 2 Comments
WordPress has changed the library in version 3.3 - which I think is an improvement. The restrictions in terms of file types remains and you can control them via hook. So you can limit or... read more...
Add Icon to Site Link in the WordPress Admin Bar
WordPress Tutorials | December 16th, 2011 | by Frank | 3 Comments
Each button in the Admin bar has a self-defining and space-saving icon. But the link to the blog frontend (which is represented as a blog title), has no icon. If you want, you can change... read more...

