You can not use conditional tags on init
Queries are only available after “wp” action hook, so ‘init’ is too early to check for it.
Queries are only available after “wp” action hook, so ‘init’ is too early to check for it.
Türkçe veya diğer özel -multibyte- karakterler için malesef PHP str_word_count(), strlen() gibi fonksiyonlarda yanlış sayım veriyor, her özel karakter 2 kelime / karakter sayılıyor. Bunu aşmak için iconv() transliteration da denedim ama kâr etmedi. Araştırmalarımda da tek -garanti- çözümün şüpheli karakterleri replace etmek olduğunu buldum ama her Türkçe karakteri (ve muhtemel diğer yabancı karakterleri) hardcode…
I’ve been pulling my hair why my custom cursor wouldnt work. Turns out, IE (yes, big surprise) takes site url instead of stylesheet as baseurl when it comes to cursors.
My metaboxes suddenly stopped working. If that’s the case for you, and you are clueless, try resetting $id for your meta_box
If you are familiar with WordPress, you should already know that you should almost never have to use get_posts(). Your best bet is to use WP_Query . As good as wp_query is, you should still fine-tune it depending on your needs, it does make a difference. For example, if you just need 1 random post…
If you want to add name email or any additional fields in addition to password for protected posts, see the steps below: /****************** custom protected post form *****/ add_filter( ‘the_password_form’, ‘custom_password_form’ ); function custom_password_form() { global $post; $label = ‘pwbox-‘.( empty( $post->ID ) ? rand() : $post->ID ); $a = ‘<div class=”clearfix”><form id=”password_form” class=”protected-post-form” action=”‘…
Disable comments, pings trackbacks etc.. Set media sizes – optionally disable monthly based archiving. Set-up a functionality plugin for the site (add GA code, manage image_sizes, remove query string from sources etc.) . Permalink structure. Move wp-config. Modify wp-config define( ‘WP_POST_REVISIONS’, 3 ); Install favorite plugins Google Maps Easy Yoast SEO Contact Form 7 Create…