Category Archives: WordPress

3 Simple Hacks to Recover Lost WordPress Password

Let’s be honest, every once in a while we forget passwords. It’s a common but widespread issue we all go through. Gmail, Hotmail, Facebook, Skype, Bank passwords and WordPress, our tiny brains have a lot to remember. Imagine you’re a business owner or blogger and have a WordPress site, and you forget its password. It’s not just you, but the nerds and even techies can’t remember their passwords at times.

Well, it may give you panic attacks, but it’s not a big deal. WordPress has simplified it to reset or recover your lost password. There are many ways to do that. However, the simplest of all is to get a new password via email through the login screen. But what if it doesn’t work? You would need to count on some other options to reset your password. Again, there are many ways but you need to implement only one though.

Here, we are going to talk about three hacks that will help you recover your WordPress password. Let’s check out what exactly they are.

Hack #1—Password Recovery or Reset via Email

Well, we discussed it right at the start. But we didn’t discuss “how”. It’s the easiest way to recover your lost WordPress password. However, this method is useful only when you know your username or the email ID used in your WordPress profile.

Go to webpage first. Start by clicking “Lost password?” option given just at the bottom of the login section as shown in the picture below.


This page will need you to provide your user ID or email address. The moment you enter the right email or username, you will receive the password to your registered email ID.

Open your email address and click on the link to reset your lost password. Now, you can access your WP site!

But sometimes, people forget their username or couldn’t recall the email linked to it. If any of these cases bothers you, don’t worry! Let’s move to the next step!

Hack #2— Password Reset or Recovery in PhpMyAdmin using cPanel

This step is for users who can access PhpMyAdmin. The URL for this step should be http://localhost/phpmyadmin. But it may vary to some extent as per one’s configuration settings. Here are the steps to follow:

a. Login to your cPanel of your WordPress hosting profile. Under the database section, choose phpMyAdmin option.


This will take you to the phpMyAdmin dashboard. Now, open your site’s WordPress database for which you have to change the password.


Go into the database table column and search wp_users. Click the “Browse” option given next to it.

Click on the user_login and find the username for which you have to change the password. When you click edit option, the user_id appears. Click edit again.

database row

Under the “user_pass” option, you’ll see a list of letters and numbers jumbled together. Select this string and delete it.

Now enter your new password. Pay attention to it as the passwords are usually case-sensitive.

Once finished, choose the MD5 option listed in the drop-down box as shown in the picture below.

DB tables

Check it twice to make sure you have entered the correct password and selected MD5.

Click the “Update”, “Save”, or “Go” option located at the footer section.

WHOA! You have successfully reset your WordPress password via phpMyAdmin. Now, you can log in with your new password! Of course, you need to enter your username first.

Wait a minute! What if you cannot access your WordPress site via cPanel? Well, there is yet another way to rest it! Here it comes.

Hack #3— WordPress Password Reset using FTP

Do you know every WordPress theme includes a PHP file called functions.php? What all you need to do is to download the same file from your hosting server (for WordPress) to your local computer via FTP.

Open the WordPress functions.php file using a text or page editor such as Notepad or Dreamweaver. Now, add a code line wp_set_password (‘abcdef, 1’) just after the

Editing wp_set_password code will allow you to reset, recover or change your WordPress password.

Here ‘abcdef’ is a sample password. It’s entirely up to you to choose any password you like. Here 1 is associated with the ID number of WordPress users.

Once you’re done with editing, save the changes you made in the functions.php. Upload the saved file to your site using FTP once again.

And, your password reset is done! Now, you can log in back to your site via your wp_admin page.

After you’ve successfully changed the password, it’s time to undo those changes. Yes, you need to undo the changes you made to WordPress theme file. Download the functions.php file again via FTP and delete the code “wp_set_password.”

Now, upload the edited file back to your site using FTP. This step will mark the end of the password recover hack.

Food for the thought

Although you are familiar with your webpage design, are you familiar with the theme? If you use cPanel or FTP to reset your password, you need to know the active WordPress theme on the website. If you edit an inactive one, you won’t be able to recover or reset the password. Look at the footer section, page source or the dashboard to know the theme of your WordPress website.

So what are you waiting for? Go and give your new password a shot!

WordPress Mistakes that Should Avoid

Most Crucial WordPress Mistakes that Should Avoid

WordPress is an open source and free platform for creating website or to write blog, many developers or user can prefer to use this platform, because it interface is very beautiful and easy to understand. We are going to point out the 5 major WordPress mistakes which are normally done by WordPress beginners and it should be avoided easily.

There are many more plugin available to customize, there are 1000 plus themes and plugins available in WordPress, any type of website can be build in these platform, like Ecommerce portal, Dental website, Educational based website etc.

Because of these kind of free features, many of the company use these CMS(Content Management System). Company like (Google, eBay, Facebook, Sony etc.)


Just of because WordPress is easy , anyone can easy edit website, there is no need of coding knowledge, but there is small things which is very essential for the website development, below are the 5 major WordPress mistakes which are normally done and it should be avoided easily.

Mistake#1: Fail to Update WordPress Version and its Plugins

WordPress continuously releases newer version, for there security and maintenance reason, and even bug fixes.

In 2013 WordPress releases 7 updates
In 2014 WordPress releases 8 updates
In 2015 WordPress releases 10 updates

The vast majority of the releases were security and maintenance which, when left un-updateed, will render your substance powerless against security issues.

So also plugins developers are like wise constantly updates their plugins according to WordPress version.

They likewise make it a point to be vigilant for security issues, so they can create patches or approaches to settle bugs. When they do, they release these plugins updates.

Update WordPress version and its plugins

But some of the user or clients ignore to update the WordPress version or plugins update, some time its very essential to update the plugin, because plugins developer add some new feature to it , if some bugs is exits in previous version it can remove, so for these kind of reason update plugins in very necessary.The most effective method to Avoid It

Update your WordPress when it requires, whenever the new version is available, user can update the WordPress.

WordPress Version 3.7, which turned out in Oct 2013, accompanied the “Programmed Background Updates”, which is basically an “updates when it require”.

These are then continued to the later releases . This element empowers updates to naturally keep running out of sight.

Be that as it may, don’t depend completely on this element. You ought to likewise set aside some opportunity to consistently check your plugins in the event that they are appropriately updating, and if the updates don’t result to contrariness issues.

Having the capacity to get issues ahead of schedule, before they can cause more serious issues, will be further bolstering your good fortune.

Be that as it may, don’t go on a plugin downloading and introducing, since you may wind up backing off your site with an excessive number of plugins, the greater part of which are pointless and simply influencing your site to run gradually because of similarity issues and clashes.

Pick just the ones that you require, and the ones that really work best for your site. If you have plugins that you are never again utilizing, deactivate them or totally evacuate them.

Mistake #2: Failure to Back up Your Site

There is nothing more baffling than applying a update, just to acknowledge later on that you’ve lost a gigantic lump of substance that you have arduously chipped away at and kept up for long periods.

All that substance, gone in under 5 seconds – and all since you were not ready to legitimately move down your site.

There is a propensity for some, clients to completely depend on innovation dealing with the moment points of interest, for example, ensuring their substance is put away.

Indeed, innovation is developing significantly, and things will undoubtedly happen. Startling accidents, hacks and mischances can occur, and you can lose imperative and valuable substance on the off chance that you don’t backup appropriately.

Back up Your Site

Step by step instructions to Avoid It

Continuously make moving down your site a propensity, particularly before you apply any updates or redesigns.

Luckily, there are presently a few apparatuses that you can use to move down your site effortlessly, rapidly and efficiently.

In case something turns out badly, reestablishing the database will be less demanding, since you as of now have a backup.

Moving down should be possible by utilizing instruments and projects, for example, cPanel, phpMyAdmin, and different MySQL GUI apparatuses.

There are likewise a few WordPress Database Backup Plugins that can be gotten to and downloaded from the WordPress plugins index.

A standout among the most prevalent WordPress backup plugins is BackupBuddy from iThemes. It appears to share WordPress’ theory of being easy to use, since it is additionally intended to be anything but difficult to utilize.

While other backup plugins concentrate chiefly on the database, BackupBuddy has a more all encompassing methodology, since it goes down your entire WordPress establishment.

What’s more, it shouldn’t end there. When clients played out the backup procedure, they may wind up abandoning it lying around.

This is a colossal no-no. Ensure that you keep your backup in a different stockpiling, just no doubt.

Other more judicious clients influence a point to go down their webpage to cloud to or on an online storeroom AND move down it again onto a CD, DVD, or an outer hard drive. This is fundamentally going down your backup.

Mistake #3: Issue of WordPress Site Not Mobile-Friendly

An ever increasing number of clients are utilizing their cell phones and other cell phones to get to the web, and a bigger lump of online movement can be followed back to versatile clients.

You won’t not know it, but rather you might pass up a great opportunity for sizable measure of activity for your site, for the basic reason that it isn’t portable easy to understand.


Step by step instructions to Avoid It

Ensure that your site is tweaked for mobile devices and other cell phones. This can be effortlessly expert by picking a WordPress topic intended for access and review on cell phones, tablets and other comparative gadgets. Luckily, there are presently a considerable measure of such subjects that you can look over.

Another approach is by utilizing a plugin planned for precisely that reason. A famous portable plugin is WPTouch, which naturally includes a versatile topic for your WordPress site, so versatile guests can without much of a stretch explore it utilizing their cell phones.

Mistake #4: Not Bothering with SEO

Having a decent WordPress site with similarly great substance will be for nothing if your site does not get saw, and one approach to get eyes attracted to your site is by ensuring it shows up in internet searcher comes about.

This is the place SEO – or Search Engine Optimization – becomes possibly the most important factor.

Sadly, there are as yet numerous clients who don’t completely understand the capability of SEO and how it could enable them to get the acknowledgment that they need.

They simply fill their site with incredible substance, and “seek after the best”. This won’t get them exceptionally far, if by any stretch of the imagination.


Instructions to Avoid It

You won’t not know it, but rather you can arrange your site’s pages for SEO. A couple of changes all over can have a significant effect between getting your post saw, and having it covered alongside a huge number of other substance that go new.

WordPress made this less demanding by concocting the All in One SEO Pack Pro plugin, which essentially makes it simple for any client to redo every individual post’s or page’s web crawler settings.

Other SEO plugins that you ought to consider introducing, beside the All in One SEO Pack, are SEO Friendly Images, SEO Ultimate, and the Google XML Sitemaps.

The last one is particularly suggested by numerous specialists, since it is successful in helping web indexes record your WordPress webpage better.

After introducing it, it will create a unique XML sitemap, which demonstrates the structure of the substance in your WordPress site, permitting web crawlers to observe it considerably speedier and clearer.

Mistake #5: Not Investing in Their WordPress Site

This is a reality that a few clients appear to experience issues tolerating: in the event that they need great esteem, they should pay for it.

So they wind up picking free subjects (since they decline to burn through cash on paid topics), so they are left with next to no to no customization choices.

The outcome is a plain, exhausting looking web architecture. While there is nothing amiss with the free plugins, there is only no denying the way that the plugins that must be paid for have more highlights.

Shoddy web facilitating, as a general rule, is precisely that: modest. The most well-known issue experienced when utilizing modest web facilitating for your WordPress website is visit downtime. This happens when there is abuse, or their servers are overflowed.

Investing in Their WordPress Site

The most effective method to Avoid It

Contribute, yet contribute carefully. On the off chance that you need to spend a few dollars for a decent topic – one that suits the substance splendidly – then do as such.

Pick from among the many prescribed web facilitating specialist organizations. Shop around, particularly in the event that you are on a tight spending plan.

Keep in mind: it is a speculation, and it will give you returns inevitably, if you settled on the correct venture choices. We have had great facilitating knowledge with bluehost when we began with our blogging.

The individuals who are hoping to improve their WordPress sites without burning through cash tend to investigate shady hotpots for subjects and plugins.

Tragically, there are a great deal of them out there, and they are certainly enticing. In any case, there is additionally the hazard that their subjects and plugins accompany noxious codes which are potential come-ons for programmers to mess around with your site. When purchasing anything for your WordPress site, purchase just from legitimate sources.

We can name numerous different WordPress mistakes committed by WordPress clients, yet these, by a wide margin, are the most well-known ones.

Responsive design

Why Do You Need a Responsive Design for Your Blog or Website.

Responsive design is an approach of developing a website that makes it compatible to work on any device such as a laptop, tablet, mobile phone or TV. Your blog or website will appear in a proper format on any device: a desktop computer, a tablet or a mobile device.

Most of the people are using mobile devices such as Smartphones and tablets for every work that used to be only accomplished using desktop.

A website built with responsive design flaunts consistently, whichever device or screen size a visitor is using, doesn’t matters. It looks the same whether you view it on your smartphone or on your computer.

Responsive web design uses CSS, HTML and sometimes javascript to grow, move, hide, shrink and show elements based on the users’ device.

Current Google reports states more than 61% of mobile visitors who go through to a website which is non–mobile-friendly return back to Google to find a website that’s more efficiently readable from their device. It’s become demanding to have a responsive design for companies.

Mobile devices such as tablets and Smartphones are in high demand for internet surfing. It’s not just surfing but all other things from checking emails, browsing social media outlets, and online shopping. Because of the rapidly increasing mobile Internet usage it is exceedingly important that your website is mobile friendly.

Techniques to Make Your Website Responsive

Flexible Design

Flexible design means to shift from fixed size to flexible sizes. Shifting to flexible sizes allows the web page to enlarge and shrink with the browser on the basis of its percentage, hence making the website responsive.

Active and Adaptive Images

Making your images quick and responsive is a very vital step, as it can affect both your websites quickness and its search engine friendliness. Responsive Images enlarge and shrink as per the browser to fit the web page of the user.

Using a large image both in file size and pixels can take a long time to load on the device connected to slower internet connections. Same as flexible design Adaptive Images set up a high response, Adaptive images allows to adapt to its parent container.

Media Queries

Media queries is an unique technique which allows to add device specific rules for screening, developing, showing or moving content for a better user experience.

Advantages of Responsive Design for your Website or Blog

Highly Increasing Demand in Mobile Usage

At present number of mobile devices on earth are more than people, and mobile usage is rapidly increasing day-by-day.

Shopping on mobile devices is rapidly growing as it is easier to shop online rather than hopping and driving to the store in car. More than 75% of the consumers use their Smartphones on a daily basis to shop online. Customers with more and more expectation will view your website from a mobile device.

It they get poor experience viewing and interacting with your site, it will result in the decrease of your business and brand.

Social media is an important aspect for the increasing demand in the mobile usage. Shoppers use social marketing strategy for attracting the customer to their websites.

Increase in Conversion Rates

It is the ability of the responsive design that all coveted conversion rates from all of the mobile users can be increased. Being flexible and adaptive a responsive website design can fit to any screen.

How all of those conversion elements will display on mobile and tablet is managed and controlled by developers. High-end heat mapping and A/B testing is also allowed by the responsive design. You can get a better picture of how users are interacting on your website by segmenting users with their mobiles.

By following this techniques, you can identify what sales tactics, marketing plans and approach are effective or not and with the help of this information you can find out a way to increase conversion rates.

Responsive Design Provides Better User Experience

Responsive design flaunts consistently, the content adjusts automatically on the screen of the device. Zooming and shrinking the contents (texts or images ) can lead to a poor user experience. Responsive design makes it more conducive and comfortable for users to read and operate your website.

A better user experience makes it more convenient for users to be reached, with their valuable feedback you can make changes as per the demand which leads to the increase in business.

Highly Adaptive

Responsive designs are highly adaptive. It provides and offers tailor-made solutions. Responsive design adapts to the user capabilities and needs. It is more compatible to the modern user experience, as it adapts to any screen size.

Responsive design with adaptive features provides a high speed and fastest website loading experience to the users. It increases the demand of users visiting the website.

Responsive Website Improves SEO Efforts

A user friendly and focused experience on your website and a best quality content can increase the demand of users on your website for a long time which results in the increase in dwell time.

A responsive website design is always recommended by Google which results in good user experience and improves the SEO efforts across all different platforms. It’s not good for a business for both Google and website not taking the benefits ans advantages of the responsive website design.

Lower Cost and Website Maintenance

The most important aspect and feature of a responsive website design is it offers you a lower maintenance cost as you handling two separate version of the same website.

With a responsive design the site will adapt to any device whether it is a laptop, desktop or mobile devices. It makes you to update the contents once and to manage only one site.

How to make a beautiful website with Professional WordPress Themes

WordPress is best because it has created both the needs and the solution to the website customization problem. A thriving community of programmers has emerged, resulting in a diversity of plugins and themes that can make any website be a success.

In Professional WordPress theme is a collection of templates and stylesheets used to define the appearance and display of a WordPress powered website.

Simple and easy steps to make a website;

1) Right platform

Content management system (CMS) in simple terms, is a platform of sorts or a mechanism which permits you to create your content and publish it on a website.


WordPress is the easiest and most powerful blogging and website content management system (or CMS) in existence today. The ideal option for someone who’s creating his or her first website. It has considerable scalability and works well with low and medium traffic websites. Millions of views every month are received by us and we run WordPress, so that gives you an idea of what medium traffic constitutes if you were wondering.

WordPress is the best choice as it offers excellent customizability even to WordPress newbies.

WordPress is the best because of;

  • Open source
  • Easy and simple
  • Secure
  • Multi Support
  • SEO friendly
  • Free themes and plugins

Once you choose the best platform you can proceed with

2) Domain name

The next step in our process involves choosing a domain name. A domain is your address. It’s how people on the internet will find you. A domain name is used for finding and identifying computers on the Internet. The domain name can be any combination of letters and numbers, and it can be used in combination of the various domain name extensions, such as .com, .net and more. the domain names hide the really technical IP address which most viewers aren’t interested in.

Getting the right domain name is very important. Things to keep in mind before choosing a domain name :

  • Concise
  • Indelible
  • Captivating
  • Straightforward

3) Finding a Host

Web hosting is a service that allows organizations and individuals to post a website or web page on the Internet. Websites are hosted or stored, on special computers called servers. When Internet users want to view your website, all they need to do is type your website address or domain into their browser. User computer will then connect to your server and your web pages will be delivered to them through the browser.

The technologies and services needed for the website or web page to be viewed on the Internet are provided by the web hosting service providers.

Types of hosting

Free web hosting

Email services – Free web hosting provider provides you with email services – so that you can setup email accounts. The email service should also include POP3 and SMTP access so you can setup and access your emails using your mobile devices.

Provides free website creating application where you can create your website simply by choosing a template and adding in your own text and images.

Free storage space allocated to store your website files, including text, images, audio, etc.

Shared hosting

It allows multiple websites to utilize a single server. Usually, you’ll have no idea who or what websites you’re sharing the resources of a server with.

Advantages of shared hosting :
  • Cheapest hosting option you’re going to have available.
  • You can upgrade your hosting package with time. This makes shared hosting a great place to
  • Easy to manage your site.
  • No technical maintenance
Dedicated server

A dedicated server is typically a rented service in web hosting business. The user rents the server, software and an Internet connection from the Web host. It provides a stated amount of memory, hard disk space, and bandwidth. Use of a dedicated server on the premises of web hosting companies saves router, Internet connection, security system, and network administration costs.

4) Configuration

WordPress Installation

We have everything needed to create WordPress website. We have domain name and active hosting account. The next step is to install WordPress to create business WordPress website.

Search for WordPress and click Install button.

Once installed it asks you to add Username and Password.

Use easy to use and hard to crack credential. Please make a note if you find it difficult to remember. We will need to login to WordPress admin area .

WordPress configuration.

Change Title, Tag line & Modify general settings

  • Login to your WordPress admin (YourDomain/wp-admin)
  • Click Settings from left navigation panel
  • On right section you will see a page where you can edit the information.
  • Site Title: Add the text that describe what your site is about.
  • Tagline: Short online statement about your business.
  • Membership: Uncheck the box. You wouldn’t need any visitor to register on your website.
  • Date Format: Choose your preferred date format. WordPress will use this format to show you date in various places.
  • Time Zone: Choose your preferred time zone.
Steps to find best free WordPress themes
  • Login to your WordPress admin area
  • Click Appearance from left navigation menu.
  • Click Themes from Appearance menu.
  • Click Add Themes on the page.
  • Now click on the popular tab.
  • You will see a long list of popular themes. You see the theme preview as an image on list.
  • Surf through the list of themes. Install a theme you like the most.
  • After installing the theme, you will see an Activate button. Press the activate button. Activate theme to use it.
  • Install all plugins suggested by theme.
Adding content

The content is the most important part of your website. Content is independent of a theme. Many WordPress users have existing content, and installing a theme that creates additional content is very undesirable. you need to produce content that genuinely offers value to would be readers. If you are creating your site purely for monetary purposes, it will be unsuccessful in the long run.

There is an art to writing great content, organizing your pages and using great images. Deficient content and images will make the difference between an amateur site and a professional one.

Add custom background in WordPress theme

Custom background is a WordPress feature that allows you to customize background color/image from backend. Custom background gives your blog to a nice look. You can add default color and image. For enable custom background you have to use this function in your function.php file within themeslug_setup() function.

add_theme_support( 'custom-background' );

After using this you can see the background menu option under appearance menu. Make sure you theme header file have body_class() inside body tag and wp_head(); within the head tag like this:

<body <?php body_class(); ?>>

So whenever you can add background color or image this function can generate a style within head tag and it will override your theme stylesheet. Now let me show you some functions which allows you set up default color and image.

Here is the full code:

$custom_bg = array(
	'default-color'          => '',
	'default-image'          => '',
	'default-repeat'         => '',
	'default-position-x'     => '',
	'default-attachment'     => '',
	'wp-head-callback'       => '_custom_background_cb',
	'admin-head-callback'    => '',
	'admin-preview-callback' => ''
add_theme_support( 'custom-background', $custom_bg);

Hope you like this article. We welcomes your question and comments.
Thanks for reading.

How to display Facebook like box on website ?

Facebook like box is allows owner to provide his users to get latest updates of his website. Facebook like box is also be known as Facebook fan box. There is lots of social networking sites are present in the market now but today Facebook is more powerful way to explore your business worldwide. So i am going to tell you that how to display Facebook like box in your website so your visitors can easily be with you directly from your website. There is lots of people who are using plugin for this but i think there is no need to use any plugin this is very simple process to do and you don’t need any coding knowledge for this. Kindly follow these easy steps to show Facebook like box in your website.

1) Go to

2) After going to like box page you have to fill some options shown below. See the screenshot.

3) After this you have to get like box code from clicking Get Code button and select the iframe tab and copy that code and paste it on your website where you want to display the like box and you’r done.

This is very simple process to get like box in your website. Hope this will helps you if you have any question or comments please feel free to ask.
Thanks for reading.

Create custom meta boxes in WordPress

Creating custom meta boxes in WordPress is very simple it allows you to add extra data to your post or page. This tutorial will show you how to add custom meta boxes to the edit post or pages screen. Sometimes website needs some extra info about post then we are looking to WordPress core functionality and thinking about how to do that ?. So before moving on we have to know what kind of meta boxes we need. You can create textbox, textarea and else. I will provide you some codes which works more better and easy to use than others. For creating custom meta boxes you have to use function add_meta_box() provided by WordPress.

Start with the code

Add below code in your function.php file by using add_meta_box to create meta boxes for any post or page.

// add meta box to post
function themename_post_admin() {
    add_meta_box( 'post_meta_box', 'Extra Info', 'display_post_meta_box', 'post', 'normal', 'high');
add_action( 'admin_init', 'themename_post_admin' );

After doing this you have to add meta fields in the post. below code will create meta field for the post i am just showing you the example for textbox and textarea but you can add much more than this.

// add meta box field to post
function display_post_meta_box( $post ) {
     $name = esc_html( get_post_meta( $post->ID, 'namebox', true ) );
     $extraword = esc_html( get_post_meta( $post->ID, 'extrawords', true ) );

echo "<table width=100%>
             <td width='20%'>Textbox</td>
             <td width='80%'>
                 <input type='text' name='namebox' value=".$name.">
            <td width='20%' valign='top'>Textarea</td>
            <td width='80%'>
                <textarea name='extrawords' class='widefat' rows='5'>".$extraword."</textarea>

This code will display text box and textarea to the edit post screen see this screenshot to know how does it look.


Now you have to use below code for saving post meta data.

// save post meta box form data
function add_themename_post_admin_fields( $post_id, $post ) {
            if( $post->post_type == 'post' ){
                   if( isset($_POST['namebox']) ){
                         update_post_meta( $post_id, 'namebox', $_POST['namebox'] );
                   if( isset($_POST['extrawords']) ){
                         update_post_meta( $post_id, 'extrawords', $_POST['extrawords'] );

add_action( 'save_post', 'add_themename_post_admin_fields', 1, 2 );

Get the full code

// add meta box to post
function themename_post_admin() {
		add_meta_box( 'post_meta_box', 'Extra Info', 'display_post_meta_box', 'post', 'normal', 'high');
add_action( 'admin_init', 'themename_post_admin' );

// add meta box field to post
function display_post_meta_box( $post ) {
	 $name = esc_html( get_post_meta( $post->ID, 'namebox', true ) );
     $extraword = esc_html( get_post_meta( $post->ID, 'extrawords', true ) );

echo "<table width='100%'>
			<td width='20%'>Textbox</td>
			<td width='80%'>
					<input type='text' name='namebox' value=".$name.">
            <td width='20%' valign='top'>Textarea</td>
            <td width='80%'>
                <textarea name='extrawords' class='widefat' rows='5'>".$extraword."</textarea>

// save post meta box form data
function add_themename_post_admin_fields( $post_id, $post ) {
            if( $post->post_type == 'post' ){
                   if( isset($_POST['namebox']) ){
                         update_post_meta( $post_id, 'namebox', $_POST['namebox'] );
                   if( isset($_POST['extrawords']) ){
                         update_post_meta( $post_id, 'extrawords', $_POST['extrawords'] );
add_action( 'save_post', 'add_themename_post_admin_fields', 1, 2 );

Above code makes the meta boxes ready for use now you have use this code within loop where you want to display meta box content.

  // for textbox use this
  echo esc_html( get_post_meta( $post->ID, 'namebox', true ) );
  // for textarea use this
  echo get_post_meta( $post->ID, 'extrawords', true ) ;

This is very simple and easy way to create meta boxes for post or pages you can also use it for custom post types. Hope this tutorial will helps you for your projects and if you have any question or comments please feel free to post below.
All the best.

Create custom post type in WordPress

WordPress is not only for just blogging but it is widely used for more than a blog. So the custom post type is widely used for display different kind of contents. WordPress has two main post types which is posts and pages. Posts is mainly used for blog like structure it is very useful to display posts order by date. Custom post type is not very different from the other posts but its usage is different. So all the WordPress developers should know about the custm post type creation. This is very simple process to create custom post type in WordPress.You just need to add some codes on function.php file and you can use it like as other posts.

Please Put below code in function.php file

//custom post type for Our Team
function themename_custom_post_team() {
	$labels = array(
		'name'               => __( 'Team' ),
		'singular_name'      => __( 'Team' ),
		'add_new'            => __( 'Add New' ),
		'add_new_item'       => __( 'Add New Team' ),
		'edit_item'          => __( 'Edit Team' ),
		'new_item'           => __( 'New Team Member' ),
		'all_items'          => __( 'All Team Members' ),
		'view_item'          => __( 'View Our Team' ),
		'search_items'       => __( 'Search Team' ),
		'not_found'          => __( 'No Member found' ),
		'not_found_in_trash' => __( 'No Member found in the Trash' ), 
		'parent_item_colon'  => '',
		'menu_name'          => 'Our Team'
	$args = array(
		'labels'        => $labels,
		'description'   => 'Manage Team',
		'public'        => true,
		'menu_position' => 20,
		'supports'      => array('title','thumbnail', 'excerpt', 'editor'),
		'has_archive'   => true,
	register_post_type( 'team', $args );	
add_action( 'init', 'themename_custom_post_team' );

// texonomy for custom post type
function team_taxonomy() {  
			'hierarchical' => true,  
			'label' => 'Category',  
			'query_var' => true,  
			'rewrite' => array('slug' => 'team-category')  
add_action( 'init', 'team_taxonomy' );

After adding this code to your function.php file you will see at the backend the new post type called Our Team in WordPress Menu. Your custom post type is ready to use in the backend now the above code will display as follows in the backend. see the screenshot below.


This is very simple and best way to add custom post type in WordPress. You can use custom post type by using wp_query_posts() before loop.

Custom Post type by Plugin

If you are not well versed with the coding and you need somethings very fast then you can use the custom post types plugin. This plugin helps you to create custom post type and texonomies in WordPress.

Custom Post Type UI


Hope this article may useful for you and you can learn lots from this your comments and queries can makes us to serve you better.
Thanks for reading.

How to update database url by using sql query in phpmyadmin?

When we are building site in WordPress there is very important thing is it’s database. When you are moving your website to new host it is very important to change database url also. Changing url in file is very important when we import sql file in phpmyadmin. so there are two steps to do it. first one is by using your code editor and another one is to run sql query. Below Steps will show to the easiest way to change url in database.

Run sql query in phpmyadmin

In the new host after importing sql file in phpmyadmin you just have to run sql query which shown below and you’r done.

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsiteurl', 'http://www.newsiteurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldsiteurl','http://www.newsiteurl');

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldsiteurl', 'http://www.newsiteurl');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldsiteurl','http://www.newsiteurl');

Once you run this query your database url update with the new url. See this screenshot which helps you more.


This is the first method from which you can directly replace a url by using sql query in phpmyadmin. Now lets move on to the another method.

Replace old url with new by using code editor

This method is very easy to perform for this you need a code editor. You just need to open sql file in code editor and just replace all the old urls with the new url. Once all the urls is replace you have to import that sql file is in new host and you are done.

Be careful when you are replacing old urls with new you have take care about every symbols and characters specially for newbies. So hope this article may useful for you also if you have any question or comment about this article. you can contact us anytime or comment below.


How to create page template in WordPress ?

Creating page template is very easy and useful method in WordPress. First of all you need to copy any file and paste it on same folder and rename the file whatever you like then you have to open the file in whichever code editor you used and add the text /* Template Name: About */ . Now when you can see the backend in pages you will got the new template name in page template dropdown. Please follow this screenshot to know better about it.


Once you finish this your page template name will appear in WordPress pages like this.


You can create as many as templates in WordPress for using different layout pages. Hope this may help you in future.

Good Luck !