Use mod_rewrite and .htaccess to implement 301 redirects, custom 404 pages, disable hotlinking and more with these quick snippets!
Use mod_rewrite and .htaccess to implement 301 redirects, custom 404 pages, disable hotlinking and more with these quick snippets!
Learn how to clear field values and return them using JavaScript
Need to grab all Custom Fields at once? No problem with the “base_get_all_custom_fields” function.
Using jQuery to set cookies is a useful way to save info for use later.
Use PHP to crawl another site and pull their links using PHP’s cURL functions.
jQuery’s slideToggle method is very useful for creating captions and sliding panels. Check out the demo and tutorial!
The JavaScript replace(); method replaces the first occurrence of a character or word in a given variable. But what if you want to replace ALL of the occurances? Here’s how.
There’s a MySQL database and you have a string that needs to be replaced in various tables. Let’s get it done using some simple queries and PHPmyAdmin!
Need get the first word from a post or page title and display it? Here’s how.
How to remove the paragraph tags WordPress put in your category descriptions.