WordPress officially announced its latest version Babo. Obviously, the new version brings lots of new things as per users as well as developers points of view. And because we have to stay up to date with the new version that brings more security features to keep your website secure. Read More
When we are working on WordPress that could be a theme or plugin development, the very first step is to set up a local development environment on your machine that could be Windows, Linux or MacOS. Read More
WordPress has lots of functionality to expend it according to your needs. We are going to talk about Add Media button. When we are creating any post/pages in WordPress, there is a button on the left side with the name Add Media which is used to add media files to your post/page.
Sometimes we need to share our conversation or some useful information from social media to our personal blog. Tweeter is the one of the giant social media platform, that also give you the ability to embed tweet on your blog. And WordPress is the one of the most powerful platform for blogging.
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.
<?php the_content( __( 'Continue reading <span class="meta-nav"></span>', 'twentytwelve' ) ); ?>
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', '');