Add WordPress Meta box and Use Its Value on Front End Posts

September 16, 2018 web-admin

What will We Get:

  1. Adding WordPress meta box function to create a input meta box for all post in a WordPress theme to get a hyperlink value and save it
  2. Using the meta box value in all posts to display hyperlink saved by meta box.

What will We Use

WordPress, CSS, HTML, PHP

How to Implement in WordPress

Adding meta boxes can be divided into three parts

  1. Adding Meta box to Post types
  2. Function to display forms fields on the posts
  3. Saving Meta box value
  4. Using saved meta box values

1. Adding Meta Box to Post Types

Following function will be added to function.php file of your WordPress which will add a meta box to all post types in your WordPress.



2. Function to display forms fields on the posts

This function will add form field to post edit screen where you will add the value to the meta box. This function should be added to function.php file.


ID, “meta-box-text”, true); ?>”> 


3. Saving Meta box value

Following function will do several things. It is responsible to check multiple validations before saving the values. These checks ensures that value saved correctly. after checking necessary conditions this function will save the values to WordPress database. This function also should be added to function.php file.
function save_custom_meta_box($post_id, $post, $update)
//Launch Multi check for validation and security

if (!isset($_POST[“meta-box-nonce”]) || !wp_verify_nonce($_POST[“meta-box-nonce”], (__FILE__)))
return $post_id;

if(!current_user_can(“edit_post”, $post_id))
return $post_id;

return $post_id;

if ( is_multisite() && ms_is_switched() ) {
return $post_id;

$slug = “post”;
if($slug != $post->post_type)
return $post_id;

// Update Values

// check that user added some value to Text box then save or update it
$meta_box_text_value = $_POST[“meta-box-text”];
update_post_meta($post_id, “meta-box-text”, $meta_box_text_value);


add_action(“save_post”, “save_custom_meta_box”, 10, 3);


4. Using saved meta box values

This is the last piece of code of our sample. Here we will retrieve the saved meta box value and use it. We can use this value for any purpose needed for our project. In this example you can write below code to your custom page template or post template single.php to display saved meta box value to show saved Download Link.
//check if link is empty then do nothing

Download Link


Best Looking WordPress Themes for Business

August 3, 2018 web-admin

A good looking website enhance the presence of a Business. As it provides an overview of someone’s business. In this selective collection of WordPress themes you will find the premium level themes for your business to start with.

1. Vella Business – Modern Business Theme

Venda is responsive and retina ready WordPress theme with a lot of
customization features to help you to create your website in minutes. It
has a advanced page builder which will make you use to create and build
any web page.

6 Best WordPress Themes for Cars and Other Emergency Recovery Services

July 22, 2018 web-admin

These premium level themes are chosen to use with Car related services. It can be used with the content like car mechanics, car recovery services, car showroom and car taxi services etc.

1. Towy – Emergency Auto Towing and Roadside Assistance Service WordPress theme


Towy is one of the great towing WordPress theme, designed for towing companies, for vehicle breakage services and vehicle assistance. if you’re looking for a manner to make a assertion for your business, the first aspect you want is a strong representation at the web. This theme is executed with an superb sense of contrast colors and get your visitors’ attention.

2. Automotive, Car Dealer, Dealership WordPress Theme – AnyCar


anycar is a richest wordpress automotive, automobile, business, mechanic, repair service gives you the type of layout patterns in a single click set up, and ensures . it includes many options of homepage, gallery patterns, weblog pages, diverse greater pages and lots greater to go with revolution slider, woocommerce support and integrated visual composer page builder

3. Car Service – Mechanic Auto Shop WordPress Theme


car service is a responsive and retina equipped WordPress theme high-quality appropriate for vehicle mechanic, vehicle repair keep, mechanic workshop, vehicle recovery, car repair services, vehicle painting, vehicle detailing, tire or wheel keep.

4. Bengkel – Modern Auto Car Repair Business Theme


Bengkel is a business WordPress theme that is appropriate for you who’ve automotive and automobile repair commercial enterprise. With modern-day design, will appeal to users to grow to be your clients. these templates may be accessed in a variety of devices together with tablets or smart phones.

5. Car Dealer-Best Car and Automotive Responsive WordPress Theme


They have 10+ years of exellence of operating with customers from the car global, they executed the maximum engaging, bendy and present day multi-motive vehicle provider theme for the variety of enterprise in car international from automobile sellers, car resellers to mechanic workshop and vehicle motor stores.

  1. faster and high acting internet site with flexible layout
  2. 6 varieties of dealer inquiry bureaucracy
  3. properly designed and shape stock listing (with unlimited automobile listing evaluation)
  4. Log capability for import-export
  5. Dashboards with Google Analytical gear
  6. velocity Optimized with out Cloaking
  7. targeted marketing and advertising and marketing
  8. outstanding GIF Pre-loaders

They are absolutely responsive subject matter facilitates user to acquire fulfillment to subsequent level no matter how massive/small their business is. go online together with your 1st automobile dealing business internet site with simply one click on these days.

6. Car Zone – Towing & Repair WordPress Theme


Carzone is best clean design wordpress theme. It is best fit for vehicle recovery / car recovery service companies and emergency services like towing service etc. Look is modern as well as attractive web design.