Important Commands working with huge directory in gcloud instance where I am using BITNAMI CLOUD LAUNCHER Making a public key in your UBUNTU system ssh-keygen cat dff-ssh-key cat dff-ssh-key.pub Copy and paste this key to you gcloud compute-engine->meta-data>ssh-keys. Making a tunnel with your localhost and gcloud database. ssh -N -L 8888:127.0.0.1:80 bitnami@IP Opening SFTP in […]

Read More →

Make multiple HTML template with sample HTML and JSON array is very useful while working on long form or any other big similar content where you want to replace only few things. This code supports infinite variables inside a sample template. Jsfiddle DEMO is below https://jsfiddle.net/shakalya/Lux8vhfw/ Now what you have to do use #0, #1, […]

Read More →

Gmail is stacking different subject emails while my client wants only same subject should be stack. I did a lot of testing and found that subject starting from [text] are ignored. whatever you put inside [ ] will be ignored if you starting a subject with there rackets. But if you put these at the end […]

Read More →

All about htaccess redirects in wordpress   HTTPS to HTTP domain redirect

  Permanent 301 redirect your olddomain to a new  www domain?

Permanent 301 redirect your old domain to new non-www domain?

Redirect all links of a domain except the domain name?

Redirect all links of a domain except the […]

Read More →

This post is about how to Create a most viewed widget for wordpress blog? This can be done in two steps. Create a meta field with each post and store a view count whenever a user see your single bog post. Create a widget which get top posts order by your meta field.  STEP 1: Create […]

Read More →

Get wordpress page content via ajax request codes are very simple and you always need something like this to make some professional steps towards yor layout.  For admin backend put below code in functions.php which is creating an ajax action ‘my_action’ which can be called from script which is  given right below this code.

[…]

Read More →

Extract all wordpress shortcode in jQuery object from the wordpress editer whose html id is #content. This supports same level and hierarchical both. See in fiddle https://jsfiddle.net/shakalya/jswe18kL/  

   

Read More →

Create a custom image/video gallery in wordpress with angularjs by putting below code in themes function.php If you are a code lover and want to get this gallery data in json format. this is the best code. I don’t like making new plugins for bunch of lines of codes. This code involves storing all the […]

Read More →

Add phpcaptcha in contact form 7 with validation in WordPress which you can download from below w3schools website. PHP Captcha 1. Extract phptextcaptcha in your theme directory of wordpress. your directory will be like. yourthemepath/phpcaptcha/css yourthemepath/phpcaptcha/font yourthemepath/phpcaptcha/captcha.php yourthemepath/phpcaptcha/phptextClass.php where captcha.php path will be generating an image and put the value of it session $_SESSION[‘captcha_code’]; 2. […]

Read More →

Very easy way to make an php file and export data on throwing the data to this url. Please copy and paste below file to the server and send data variables to this path. Like i have uploaded it as export.php Send the two variable csv_header and csv_output as comma saperaed string and new line must be […]

Read More →