Prevent Company Name From Translating

In your example, the company name will not be translated. However, you should at least make it possible to write the name in the native alphabet. Latin letters look really odd in some other alphabets. There is also a legal issue: in some countries it is not allowed to use capital letters for anything but … Read more

How can I get plugin meta data without knowing the plugin folder?

If you know a function or class of the plugin’s main file, you can use the Reflection API. Example with my plugin T5 Taxonomy Location add_action( ‘plugins_loaded’, function() { $class=”T5_Taxonomy_Location”; if ( ! class_exists( $class ) ) return; add_action( ‘admin_footer’, function() use ( $class ) { $reflection = new ReflectionClass( $class ); $file = $reflection->getFileName(); … Read more

Why can’t I add a custom image in my navigation?

I figured it out. You have to search your style.css file and find /* Buttons */ Under that you will find the following classes .menu-toggle, article.post-password-required input[type=submit], .bypostauthor cite span {} .menu-toggle, button, {} button[disabled], input[disabled] {} .menu-toggle:active, .menu-toggle.toggled-on, button:active, {} There are 2 states of the button that you need to configure. Hover and … Read more

Conditional On custom field plugin metabox

This can’t work because isset() returns true if there is a value, trueand false are values, ergo it won’t work. Do it like this instead: $premium = get_field(‘premium’); if ( ! $premium ) { // this is basically short for $premium == false echo ‘not premium’; }

Comparing Dates from custom field

Well, the exact server time/timestamp can be retrieve with current_time function. And comparing your date format, it would need to be Ymd. So combining these two thing, the proper comparison for you should be – $key = get_post_meta( $post->ID, ‘Due’, true ); $date = date(‘Ymd’, current_time(‘timestamp’) ); if( $key >= $date ) { // note … Read more