Nice URLS PHP .htaccess

Nice clean URLs: .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] # http://domain/about -> http://domain/about.php -------------------------------------------------- .htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule...

Read More

Speed up your site with .htaccess caching

One of the most useful snippets that we’ve found recently is the one below. By using some simple .htaccess file cahing, you can dramatically increase your website speed. This snippet you should always have on your toolbox! # 1 YEAR Header set Cache-Control "max-age=29030400, public" # 1 WEEK Header set Cache-Control "max-age=604800, public" # 2 DAYS Header...

Read More

Using Custom Fields

While working on a project for a customer, needed to use custom fields, came across a few useful snippets: Dump out all custom fields as a list <?php the_meta(); ?> Display value of one specific custom field “companyName” would be ID value of custom field <?php echo get_post_meta($post->ID, 'companyName', true); ?> Display...

Read More

How to Run a Loop Outside of WordPress?

Sample below can be used on any PHP file even outside your WordPress installation. Include Basic WordPress Functions <?php define('WP_USE_THEMES', false); require('/server/path/to/your/wordpress/site/wp-blog-header.php'); query_posts('showposts=1'); ?> Run Loop <?php while (have_posts()): the_post(); ?> <h2><?php the_title();...

Read More

Web Design Simplicity in 2010 – UX/UI Design

     The new year has began and has gives us a new page to start off with – to improve ourselves. Looking back at previous years of designing, I see that we as designers gave in to our clients’ requests – cluttering their website with different features that no one needs and thus duplicating content sometimes. In 2009,...

Read More

Does your business need a Facebook page? YES and NOW!

Once Facebook announced the Fan Pages, this feature received a lot of mixed reviews – some people were excited to see a new advertising platform and other people just hated it – Facebook was starting to turn into MySpace. I’ve read a number of articles around the net on benefits of having a Facebook Fan Page for your business and here are a...

Read More
Request a Quote
  1. (required)
  2. (valid email required)
 

cforms contact form by delicious:days

Request a Quote