WordPress makes it easy to create a great looking website. So easy in fact, that sometimes we don’t take the precautions that we should with it. We assume that everything is safe because WordPress seems like a reliable tool. However, just like anything else, it has some dangers associated with it. To keep your website and information safe, here are a few precautions you should take whenever you create a website with WordPress.
[Read more…] about 5 Precautions to Take When Using WordPressTips and Tricks
[How-To Guide] Back-Up WordPress Database By Using PHPMyAdmin
WordPress Blog’s use MySQL Database to store whole information like your blog posts, comments, etc. If you’re a Professional Blogger then you’re constantly updating your blog with at least 4 blog posts a day and this data directly stored in MySQL database which you don’t want to lose at any condition, so it’s necessary for you to keep up the regular backups of your data to protect it from any loss or damage. Already I had covered a lot on the database from installing to deleting a database by using PHPMyAdmin. Now, this post focus on “how-to back-up the WordPress Database By Using PHPMyAdmin”. [Read more…] about [How-To Guide] Back-Up WordPress Database By Using PHPMyAdmin
[Tiny Tip] Remove Update Notification For All Users Except Admins
WordPress most popular and widely used CMS which comes with lots of unlimited features. The best thing about WordPress is that it comes with lots of free plugins and themes. Time-to-time upgraded versions are available and you will be notified in wp-admin panel. If you are running a multi-author WordPress blog, then its necessary to hide the upgraded versions from all users. In this post I’m sharing a piece of code which allows you to hide the updated versions form all users and only administrator can see these notifications.
// REMOVE THE WORDPRESS UPDATE NOTIFICATION FOR ALL USERS EXCEPT SYSADMIN
global $user_login;
get_currentuserinfo();
if (!current_user_can(‘update_plugins’)) { // checks to see if current user can update plugins
add_action( ‘init’, create_function( ‘$a’, “remove_action( ‘init’, ‘wp_version_check’ );” ), 2 );
add_filter( ‘pre_option_update_core’, create_function( ‘$a’, “return null;” ) );
}
Isn’t it great to hide the notification from other users? Like this post, then do not forge to follow WebGuide4U on Twitter for more updates on WordPress Tips.
[via] StackExchange
[Tiny Tip] Enable Hidden Admin Feature By Displaying All Site Settings
If you are a theme developer, then it becomes handy to keep a record of various pieces of code you are adding in your theme’s functions.php file. so that you can reuse them. In this post, I’m sharing a little piece of code that allows you to add additional options to your settings menu with a link to “all settings”. By adding this tiny piece of code, it shows you a complete list of all the settings you have within your database related to your WordPress site.
The best thing of this code is that, the link is available to admin only and it is hidden for all other users. Here is the code:
function all_settings_link() { add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php'); } add_action('admin_menu', 'all_settings_link');
Isn’t it a great way to track all settings of your database? Like this post, then share it will all your friends and do not forget to follow WebGuide4U on Twitter for more updates on Theme Development.
[via] StackExchange
[Tiny Tip] Display Recent Post In A List Format
Displaying recent posts on your blog helps users to visit them easily and allows you to decrease bounce rate of your blog. You can easily display recent post on your WordPress blog in no time and that too without using any WordPress plugin.
All you have to do is to paste the code in template file of your choice. The list format is mostly used in sidebars of WordPress pages like archives.
<?php get_archives(‘postbypost’, ’10’, ‘custom’, ‘<li>’, ‘</li>’); ?>
You can easily change the number 10 to any number of posts you want to display.
Isn’t it a great tip which allows you to display recent post in list format? Like this tip, then share it with your friends and do not forget to follow WebGuide4U on Twitter for more tips on WordPress.