Category: Wordpress

Update WordPress Manually using SSH

Author: | Categories: Linux, Wordpress No Comments
This is Step by Step guide to manually update WordPress Core on your Linux server using SSH. You may need it if you have set restrictive file permissions on your server or for any reason. 1. First create a full backup of your website. This is very important in case you make a mistake you […]

Revision Count in Posts Admin Screen in WordPress

Author: | Categories: Programming, Wordpress No Comments
This Post discusses how you can add Revision Count in Posts Admin Screen in WordPress. In order to show Revision Count as a Column in Posts Page Admin Screen, add below filter and action in functions.php of your theme. // register custom column add_filter( 'manage_posts_columns', 'custom_posts_table_head' ); function custom_posts_table_head( $columns ) { $columns['revisions'] = 'Revisions'; […]

Add Custom Column in Admin Post List in WordPress

Author: | Categories: Programming, Wordpress No Comments
In this post I’ll show you how to add Custom Columns to WordPress Posts Management screen. Also I will show how to make those Columns Sortable. To add Columns in Posts Page in Admin Screen, add filter “manage_posts_columns” and action “manage_posts_custom_column” in functions.php of your theme. // register custom columns add_filter( 'manage_posts_columns', 'custom_manage_post_column_test' ); function […]

Post Views using Post Meta in WordPress

Author: | Categories: Programming, Wordpress One Comment
This Post discusses how you can track Post Views in WordPress without using Plugin by using Post Meta. Post Views can be shown in Home Page and along with the Post itself but I will show Post Views in Posts page on Admin Screen. In the end, I’ll make this column sortable. Open functions.php of […]

Import and Export MySQL Database

Author: | Categories: Database, Wordpress One Comment
There are many ways you can Export and then Import MySQL on other server like phpMyAdmin and MySQL WorkBench. But most efficient way (though not much user friendly) is command line option. This is helpful when you don’t have other option to transfer database but you have SSH access to the server and you want […]

Add a PHP page to WordPress

Author: | Categories: Wordpress No Comments
First, duplicate post.php or page.php in your theme folder (under /wp-content/themes/themename/). Rename the new file as templatename.php (where templatename is what you want to call your new template!). Enter the following at the top of the new file: <?php /* Template Name: templatename */ ?> You can modify this file (using php) to include other […]

Increase the Maximum File Upload Size in WordPress

Author: | Categories: Wordpress No Comments
In most situations there is a need to upload bigger file to WordPress site, and by default there is a limit of file size for uploading. Below are few options to increase file size which can be uploaded to WordPress. Theme Functions File There are cases where we have seen that just by adding the […]