[How to] Add a User to WordPress Programmatically

In a recent development project, I had 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: <?php /* Add user to wordpress programmatically */ $user_name = “wpadmin”; […]

Read more [How to] Add a User to WordPress Programmatically

[How To] Display Search Form on Theme

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 the contents of that file. If […]

Read more [How To] Display Search Form on Theme