WordPress URL error for links

This should be solved by http:// in front of site_url and home in the wp_options table of your database. You can try adding below in wp-config.php define( ‘WP_SITEURL’, ‘http://subdomain.example.com’ ); define( ‘WP_HOME’, ‘http://subdomain.example.com’ ); For more details follow this link hope this will help.

Right way to display the_author_meta fields?

I would actually load them into an array: $author_contact = array( ’email’ => get_the_author_meta( ’email’ ), ‘telephone’ => get_the_author_meta( ‘telephone’ ), ‘twitter’ => get_the_author_meta( ‘twitter’ ), ); Once you have that created, you can iterate through it using a foreach() loop: <ul class=”author-contact”> <?php foreach( $author_contact as $contact => $address ) { if( isset( $contact … Read more

DISABLE wordpress upgrade page

You can actually do this on the web host without actually any PHP code. Using the same procedure as is recommended to deny access to wp-config.php, you can also deny access to upgrade.php. All you need to do is create a file named .htaccess in wp-admin and put the following in it: <files upgrade.php> order … Read more

How to Add Super Admin for WordPress multi-site

More information for how to manage user manually Manage This settings if ( $newpassword != ‘ ‘ && $newemail != ‘ ‘ && $newusername !=’ ‘ ) { if ( !username_exists($newusername) && !email_exists($newemail) ) { $user_id = wp_create_user( $newusername, $newpassword, $newemail); if ( is_int($user_id) ) { $wp_user_object = new WP_User($user_id); $wp_user_object->set_role(‘administrator’); grant_super_admin($user_id); // Grants Super … Read more

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