Tag: Php
Using PHP to Remove an HTML Tag from a String
There are times when you need to strip one specific HTML tag from a string and the PHP function strip_tags() doesn’t work the way you want it to. strip_tags() allows…
10 Great Free Mac Apps for Web Developers
I have been a Mac man for almost ten years now, and though many Web developers swear to working on a PC, I find my Mac has everything I need…
Using jQuery to make an Expandable Code Box for WP-Syntax
You may have noticed that I’m using a new syntax highlighter for my code snippets. I installed Ryan McGeary‘s WordPress plugin WP-Syntax which uses GeSHi (Generic Syntax Highlighter), a…
Quick & Easy Excerpt Mods Coming in WordPress 2.9
I just stumbled across these two little pieces of code and thought that they might be useful to some people out there who want to mess around with the default…
Custom Template for Single Posts in WordPress
If you take a look at the template hierarchy in WordPress, you will notice that you have the ability to create custom templates for different category pages by simply…
Remove the WordPress Generator
WordPress automatically places a line of text between your <head> tags which states the version you currently have installed. I have read that it is there for statistical reasons which…
Securing Your Site’s Directories
If you store files or images in a folder called “images”, and people enter www.yoursite.com/images as a URL, they will see a list of all the files you have in…
A Settings Link for Your WordPress Plugins
If you are developing a WordPress plugin, one of the first things I would suggest is adding a “Settings” link directly on the plugins page. This makes it easier for…
Remove wp_list_pages() Links for Parent Pages
Creating a page list in WordPress is super easy. All it takes is one function call: <?php wp_list_pages(); ?>. The only problem with the list is if you have…
