How to access another Database in WordPress

wpdb is the class that helps you to manipulate the database in WordPress. But you can not access it directly, you have to use the global object $wpdb to manipulate the database. The Database configuration is stored in wp-config.php during installation process. Highlighted like this

/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

 

Read More

Responsive Google Map WordPress Plugin

After getting success of my responsive Google Map post, i decided to create a WordPress Plugin. It is easy to install like the other plugin. The best and favorite part of this plugin is Responsiveness. This plugin don’t need any extra functionality or CSS to make it responsive. You can freely use it on your website sidebar, posts and pages.

responsive_google_map

How to use Google Map Plugin?

It is so simple to use this plugin. Just install it like the other plugins and activate it.
Read More

How to make Featured Post in WordPress

Recently i have designed a website for one of my client that want featured post on his website’s blog section. Featured Post or You can say Sticky Post, one thing with different name, already available into WordPress admin panel and it is so easy to implement.

featured-post-in-wordpress
Read More

How to use AJAX in WordPress theme

In this article, we are going to learn what is AJAX ( Asynchronous JavaScript And XML ) and how to implement it with WordPress. WordPress’s Page / Post autosave is one of the great examples of Ajax or WordPress Image Uploader is another great example.

Read More

How to Use WordPress Uploader into your theme

When we develop a WordPress Theme for our clients then it would be great to customize all the website design according to clients requirement. In this article, we are talking about WordPress Uploader, one of the good feature of WordPress. This media uploader helps you to re-size your uploaded images, and even more useful features to increase your productivity to finish a task.


Read More