Contact Form 7 Statifier – HTML files for your forms

cf7

Tired of writing Contact Form 7 forms and emails in the WP-admin area? Not a real code editor at hand? Manually inline your email’s CSS for compatibility reasons? You prefer to keep it in a version control system? Contact Form 7 Statifier to the rescue.

Read More

WordPress ACF Readonly

1024px-WordPress_logo.svg

ACF, shorthand for Advanced Custom Fields, is one of the most exclusive plugins there is. It really takes the pain out of custom field creation and makes it really easy to extend your WordPress setup fast. Recenlty I wanted to set some field, which is filled automatically, to read-only to prevent wrong values in this specific field. So I thought ACF covers that. But it turned out this is not possible via the UI (afaik).
Therefore I looked up the documentation and found acf/load_field.

Add the following filter to your functions.php in order to set a field (field_readonly) to readonly:

function acf_set_readonly($field) {
if($field['_name'] == 'field_readonly')
$field['readonly'] = 1;
return $field;
}
add_filter('acf/load_field', 'acf_set_readonly');

Disable NextGen Gallery Cache

1024px-WordPress_logo.svg

NextGen Gallery is the most popular WordPress gallery plugin. It comes with a lot of options, features, extensions, …
Also several caching concepts are implemented, one of it being “template caching”. To disable NextGen Gallery Cache entirely I’ve found 2 possible options:

As a query parameter: ?ngg_force_update=1
As a constant (in wp-config.php): define('PHOTOCRATI_CACHE', false);

Hope this helps somebody.

WP Option Tree Post Checkboxes & Select ignoring admin language

1024px-WordPress_logo.svg

Option Tree can generate a list of checkboxes displaying your posts (or any other post-type). But the generated checkboxes don’t take in the language as Option Tree uses get_posts to fetch the posts from the DB. So you will end up a with a long list of posts where some might have the same title and you can’t distinguish one language from the other.
5 lines of code to the rescue!

Read More

WP-CLI and separated structure

An issue with WP-CLI and a WordPress installation with separated parts (WP-Core & WP-Content).

Read More

PDF Generator – WordPress Plugin

Coming soon…