php
Articles and projects relating to 'php'

Include JavaScript files on certain WordPress pages

If you need to include javascript on certain WordPress pages then add the following logic in the header.php
Here I am registering and queuing up the wordCounter JavaScript file if the current page title is ‘wordCounter jQuery Plugin’.

Remove from array by value

PHP is a web based programming language

In this how to post I demonstrate a class method that I have created that removes array items by its value rather then its index. The method has the ability to remove all occurrences of the the value from the array in question or just the first occurrence.