Open your PHPMyAdmin from your cPanel or Self-Installed mode.

Select related database to your WordPress Install, and click SQL tab. Input the command below.
Continue reading “How Create WordPress User Using phpMyAdmin”wordpress expert | [email protected]ungbp.com
Open your PHPMyAdmin from your cPanel or Self-Installed mode.
Select related database to your WordPress Install, and click SQL tab. Input the command below.
Continue reading “How Create WordPress User Using phpMyAdmin”Just add this code to single.php, replace or comment the default function like the_post_navigation, get_previous_post, get_next_post, etc.
$prev_post = get_previous_post(); $prev_thumbnail = get_the_post_thumbnail( $prev_post->ID, 'large'); $next_post = get_next_post(); $next_thumbnail = get_the_post_thumbnail( $next_post->ID, 'large'); $args = array( 'prev_text' => $prev_thumbnail, 'next_text' => $next_thumbnail ); the_post_navigation( $args );
Easy!
By default, if you use Gravity Forms, after you complete a form, a notification will be shown, and the form will be dismissed. Below is the script to retain the form after a form is submitted.
Just paste into functions.php and change the _id with the form ID.
add_filter( 'gform_pre_submission_filter_ID' , "show_confirmation_and_form" , 10 , 1 ); function show_confirmation_and_form($form) { $shortcode = '. '" title="false" description="false"]'; if ( array_key_exists( 'confirmations' , $form ) ) { foreach ( $form[ 'confirmations' ] as $key => $confirmation ) { $form[ 'confirmations' ][ $key ][ 'message' ] .= $shortcode; } } if ( array_key_exists( 'confirmation' , $form ) ) { $form[ 'confirmation' ][ 'message' ] .= $shortcode; } return $form; }
I found this script somewhere, but I will credit the original source once I found it.
Sometimes, a plugin or theme throwing error or warning messages. To hide it, simply just put this on top of the wp-config.php file:
ini_set('display_errors','off');
All set.
I’m moving out a blog to a new domain, and redirect all posts specifically to a new domain.
http://olddomain.com/category/postname
should go to
http://newdomain.com/category/postname
On Apache that allows .htaccess, you can add this line on top of the file:
RewriteEngine on RewriteRule ^(.*)$ http://www.newsite.COM/$1 [R=301,L]
On Nginx, add this line on server block configuration file:
server { return 301 http://newdomain.com$request_uri; }
Reload or restart Nginx for the change to take effect.