Prakash Koirala
Its all about programming
About Me
Contact
Quotes
Sayeri
Wordpress
WordPress check email exists
May 22, 2016
Add Comment
function EmailExist($email,$id=0) { global $wpdb; if($wpdb->get_row("SELECT user_email FROM ".$wpdb->prefix."users WHERE user_email = '"
[...]
redirect subdomains wordpress author pages
February 14, 2016
Add Comment
Eg: example.com/author => author.example.com In .htaccess fle add the following rewrite rules RewriteCond %{HTTP_HOST} !^www.example.com RewriteCond
[...]
WordPress get results
March 5, 2013
Add Comment
function my_plugin_get_results () { global $wpdb; $table_name = $wpdb->prefix . "plugin_table"; $active_rows = $wpdb->get_results( "SELECT * FROM
[...]
WordPress post revision off
February 20, 2013
Add Comment
Add the following line in wp-config.php file in wordpress to make the revision goes off. define('WP_POST_REVISIONS',
[...]
WordPress Mysql query updation for server
February 20, 2013
Add Comment
UPDATE [your_table_name] SET [your_table_field] = REPLACE([your_table_field], '[string_to_find]' , '[string_to_be_replaced]'); e.g: UPDATE wp_posts SET guid
[...]