Posts tagged how-to

How to add a user to WordPress programmatically

In a recent development project I needed to add a user to WordPress programmatically because I had no WP user data but only access to FTP. If this is your case, here is the code I used to add myself to the WordPress users:

Search your files faster using Everything on Windows

Everything is a tiny file search application, but it can handle loads of files. In this video tutorial I show you how to install and use Everything for Windows.

Displaying search form on your theme files

In order to display search form on your theme, either you can use search widget on your sidebar, or you can add it manually using php template below: <?php get_search_form( $echo ); ?> Default WordPress Search Template If you have a searchform.php in your theme folder, this template displays contents of that file. If you […]

How to create your own CDN server using Nginx

Nginx is an event driven web server, that is why it is a perfect choice to create your own CDN server. In order to build your own cdn server, simply follow these steps: Step1. Install nginx on your hosting server. yum install nginx Step2. goto /etc/nginx/conf.d folder and backup all configuration files. mkdir backups mv *.conf […]

How to use gumball feature in Rhino5

In this quick tutorial you will learn how to use gumball feature that is available in Rhinoceros 5. Gumball simplifies commands like move, rotate and scale. You can also use gumball feature to extend, extrude faces, copy curves and extract faces of polysurfaces.

Make YouTube video embeds look more professional

YouTube is surely one of the best ways to add videos to your site. However, if you want your videos to appear more professional on a promotional or advertorial page, you may want to hide certain elements of the YouTube player. Here comes the hidden gems of embedding string to help us. Default YouTube Embed […]

How to change order of menu items

Dropdown menu widget automatically generates pages and categories menus. While generating page menu, it uses Page Order specified on Add New Page screen.

List files and directories by file size on linux

You can get a list of files and directories sorted by file size using command below: du -sm * | sort -nr | head -15 Detailed explanations can be found here.

Speed up your website using .htaccess file

.htaccess is a magic file that tells apache to how to serve files in a directory. It is the most common also the best way to speed up your website. One of the most important factor in page loading speed, is that

How to redirect 404 hits to your blog home page

A regular website, gets about 10-15% not found hits in a month. If you can’t handle those hits in a good way, visitors will leave your site with dissapointment. Of course, a custom, well organised 404 page is the best way to handle them, but you can also redirect them to your home page for […]

HowTo: Change number of posts displayed on Search

WordPress usually use a constant number of posts for all your category pages, index, and also search results pages. For search pages, 10 posts are not usually enough. To change this behaviour, a simple query filter will do the trick.