wp-admin blank page after admin login and all security off

WP 4.1.1 seems to need a lot more memory than previous versions. Just add define(‘WP_MEMORY_LIMIT’, ‘256M’); in your wp-config.php file just before the /* Stop editing */ comment line and you should get rid of the blank screens. If you can’t access that much memory, go for less, but from my tests the minimum required … Read more

How to pre-set WordPress settings for specific posts?

After scouring on the net and bouncing around, I figured out how to fix my problem. Install ACF and create your own post types. In Functions.php, add the following codes to default category for that post type. function add_pastorheart_category_automatically($post_ID) { global $wpdb; if(!wp_is_post_revision($post_ID)) { $pastorheartcat = array (15); wp_set_object_terms( $post_ID, $pastorheartcat, ‘category’); } } add_action(‘publish_pastors-heart’, … Read more

wordpress ajax always return 0

In function myajax_submit send the headers before echoing any content header(‘Content-Type: application/json’); echo json_encode($response); die();