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 woocommerce products in loop ?

How to get woocommerce products in loop ? with shortcode function crousalproducts(){ ?> <ul class=”products”> <?php $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 12 ); $loop = new WP_Query(

Read More »

How to create session in cordova app with jquery (ajax) in wordpress?

Create session in cordova app with jquery in wordpress. Paste in function.php file.function check_login(){  if(function_exists(‘date_default_timezone_set’)) {    date_default_timezone_set(“Asia/Kolkata”);}// then use the date functions, not the other way around$date = date(“d/m/Y”);$date1

Read More »

How to accept image extension from url in php?

How to accept image extension from url in php? <?php  $file_name = ‘http://localhost/brrrr/wp-content/uploads/2019/11/New-Business-card-4.jpg’; echo $file_name.”<br>”; $allowed = array(‘gif’, ‘png’, ‘jpg’); $ext = pathinfo($file_name, PATHINFO_EXTENSION); if (!in_array($ext, $allowed)) {    

Read More »