Posts Tagged ‘Code’

WordPress Options Passed To JavaScript #2
WordPress Tutorials | May 18th, 2012 | by Frank | 1 Comment
In our first article of this mini series, I explained how to pass with JSON from PHP to JS. Alternativly you can do this with the WordPress function wp_localize_script(), but contains some pitfalls. Therefore this... read more...

WordPress Options Passed To JavaScript #1
WordPress Tutorials | May 16th, 2012 | by Frank | 12 Comments
In WordPress you are not always in the PHP world and so you have to pass settings and data from the database to scripts sometimes. In many Plugins you can find solutions in loading the... read more...

First or Last Page in Page-Structures of WordPress
WordPress Hacks | May 8th, 2012 | by Frank | 7 Comments
Now and then little snippets are pretty useful. For a fix in a Premium-Theme, I needed a kind of evaluation, where I am in the site structure and with little effort I was able to... read more...

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



