WordPress
Add read more button with the_content() function
Its quite simple to add the Read More button with the_content() function, the_content() function is displaying the content of the current post but if its find the tag into the post then its only display the upper content of this tag into the single post. This is how it looks like in the template part.
the_content(
__( 'Continue reading <span class="meta-nav"></span>', 'twentytwelve' )
);
…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', '');
…
Responsive Google Map WordPress Plugin
Responsive Google Map for WordPress gives you many ways to customize Google Map for your WordPress website. You can create as many maps as you want without any limit. All the options are available on a single screen to customize and enhance the map. This Google Map plugins have various features to manage width, height, markers, infowindow, and a lot 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.
Display custom message on WordPress admin
In some point of view when we developed a custom WordPress plugin or theme, we have to notify users for any urgent update, error, or any custom message on the WordPress admin section. All this is done by admin_notices hook function.
…