Call a function on page refresh using Javascript


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friends, welcome to my blog. Today I will show you how to call a function on page refresh using Javascript. This is a very vital script and save my life when I was working for a client. Client requirement was that when anyone navigate to another page of his website, audio player automatically pushed. So I use my logic and call a javascript function to pushed the audio on page refresh. By default audio player is on auto play mood. So when user goes to another page after page refresh the audio automatically start. Read more

Add, edit, delete, list application using php mysql


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friends, welcome to my another blog post how to create a simple add, edit, delete, list application using php & MySQL. This application is for beginners who started their career in php and want to know how php interact with MySQL. Using this application you can check your MySQL command like SELECT, INSERT, UPDATE, DELETE. At first I will describe the whole process (logic) and then I will code it.
Read more

How to load Inline Script After main jQuery WordPress


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friends, welcome to my another blog post how to load inline script after main jQuery in WordPress. If you want to load your inline scripts after main jQuery then what to do. I had a previous blog how to enqueue inline scripts in header where I show you how to load js script using functions.php. But here I show you a conditional statement. If your main js files load then your inline js will load otherwise not. Some times we have to add some inline js scripts to initialize some js functionality. So we need this types of condition. WordPress has a function wp_script_is to check if a script has been registered, enqueued, printed, or is waiting to be printed. So this function did the trick for me. Read more

How to enqueue inline scripts in header WordPress


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friends, welcome to my another blog post how to enqueue inline scripts in header WordPress. Before writing this blog I had a big question in my mind that we can enqueue js, css files using wp_enqueue_script and wp_enqueue_style functions. But If we want to enqueue(add) inline js scripts in our theme’s header file using functings.php the how to do that. How we can enqueue inline js scripts in header? So for you people I have a solution. Please follow the below code: Read more

How to create wordpress custom post search result page template


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friends, welcome to my another blog post how to create WordPress custom post search result page template. By default WordPress has a default search form where you can search all site content. But if you want to search only inside a Custom Post then you have to modify the search form. You must add this code to search only inside your custom post . Now come to result page. By default wordpress find search.php to show the search result. If you do not have search.php WordPress then call index.php to show the result. But if you want a custom page template to show the search result then what to do. So today I will guide you step by step how to achieve that. Read more

How to get user details from IP Address in PHP


Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home1/abhijit/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Hello friends, welcome to my another blog post get user details from IP Address using PHP. Using this small application you can get visitor’s country, state and geographic location. The concept behind this application is that when a user visit to your website you can easily get the IP address of that user using $_SERVER[‘REMOTE_ADDR’]. Just store the IP address into a variable and pass that IP into third party websites API. This third party API will give you all the information related to that IP address. Read more