Posts Tagged ‘Code’

WP Engineer - WordPress News, WordPress Themes, Hacks and Tutorials

Don’t use strlen()

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...

WP Engineer - WordPress News, WordPress Themes, Hacks and Tutorials

Best Practice for Multilanguage WordPress Content? New Plugin!

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...

WP Engineer - WordPress News, WordPress Themes, Hacks and Tutorials

Separate Logic From Output

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...

WP Engineer - WordPress News, WordPress Themes, Hacks and Tutorials

Adding Custom Fields to WordPress User Profile

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...

WP Engineer - WordPress News, WordPress Themes, Hacks and Tutorials

Restrict Mime Types on WordPress Media Upload

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...

WP Engineer - WordPress News, WordPress Themes, Hacks and Tutorials

Add Icon to Site Link in the WordPress Admin Bar

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...

Pages: Prev 1 2 3 4 5 6 ... 14 15 16 Next