how to set default value for checkbox in wordpress

I think the problem might could be the logic with using checked… <input type=”checkbox” name=”aps_display_post_title” value=”yes” <?php if ($aps_display_post_title != ‘no’) {echo ‘checked’;} ?> /> …on the other hand then running sanitize_text_field on the checkbox value might also be causing the problem. Instead you might want to break the logic down differently so it is … Read more

get_terms won’t display product_cat or any other custom taxonomies when specified

You are maybe running an old version of WordPress (before 4.5). Before WordPress 4.5.0, the first parameter of get_terms() was a taxonomy or list of taxonomies and since 4.5.0, taxonomies should be passed via the ‘taxonomy’ argument in the $args array (that what you are doing, it should work like that). You will find all … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)