The following example will show the categories with checkbox <?php $args=array( ‘child_of’ => ‘1’, ‘hide_empty’ => ‘0’ ); $categories = get_categories($args); foreach($categories as $key => $value){ ?> <label><input name=”escorts_category[]” value=”<?php echo $categories[$key]->cat_ID; ?>” type=”checkbox”> <?php echo $categories[$key]->name; ?></label><br /> <?php…

Sometime, you need to get a current page URL that is shown in the browser address bar. Here is a small code to get the current url. $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'] .$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'] .$_SERVER['REQUEST_URI'];

Open your theme’s “functions.php” file and this PHP code in your file. <?php add_action( ‘show_user_profile’, ‘show_extra_profile_fields’, 1 ); add_action( ‘edit_user_profile’, ‘show_extra_profile_fields’, 1 ); function show_extra_profile_fields( $user ) { ?> <h3><?php _e(‘Your Hotel Address’, ‘frontendprofile’); ?></h3> <table class=”form-table”> <tr> <th><label for=”twitter”><?php…