Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to get multiple values from ajax in wordpress?

Get multiple values from ajax in wordpress. Paste this code in main file.  function single_user_data(){ var ajax = “https://wpcodekit.com/wp-admin/admin-ajax.php”;    var data = { ‘action’ : “get_single_use”, ‘ID’: user_id }

Read More »

How to get full detail of any mobile number in cordova?

Get full detail of any mobile number in cordova. document.addEventListener(“deviceready”, hello, false); function hello(){ navigator.contacts.pickContact(function(contact){  console.log(‘The following contact has been selected:’ + JSON.stringify(contact));   document.getElementById(“number”).innerHTML = ‘The following contact has

Read More »

How to fetch file name, extension and basename from url in php?

Fetch file name, extension and basename from url in php <?php $file = ‘http://localhost/brrrr/wp-content/uploads/2019/11/New-Business-card-4.jpg’; $ext = pathinfo($file); echo $ext[‘dirname’] . ‘<br/>’;   // Returns folder/directory echo $ext[‘basename’] . ‘<br/>’;  // Returns

Read More »

How to Create a Custom Page in WordPress?

<?php /* Template Name: myfirstpage */ ?> <?php get_header(); ?> <div id=”primary” class=”content-area”> <main id=”main” class=”site-main” role=”main”> <?php // Start the loop. while ( have_posts() ) : the_post(); // Include

Read More »