I do this in all my themes that I make and surely I thought the Wordpress Dev’s would have fixed it by now, apparently not. The wordpress title tags things like “wp_title” are broken and they always have been. They dont stop your wordpress install from doing its job but it does make SEO alot harder. So heres the code that you need to add to your header to make sure your theme works perfectly!
<?php if (is_home () ) { bloginfo('name'); echo ' - ' ; bloginfo('description');} elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name');} elseif (is_single() ) { single_post_title(); echo ' - ' ; bloginfo('name');} elseif (is_page() ) { single_post_title(); echo ' - ' ; bloginfo('name');} else { wp_title('',true); } ?>
So this week, as promised everyday around 4PM(UTC) We’ve posted a new cheatsheet for a particular subject. They’ve already helped so many people and I hope, as a website developer, they can help you too.
The cheatsheets themselves just contain the tags for code, no explanation apart from sone that do contain a small caption next to them. A very good skill to have during developing online is to look at code and be able to reaad what it does without breaking it down. For example…
<?php wp_login(); ?>
Means This is the Wordpress Login Text
Many langauges make sure you can do this by just looking at the tag themselves. Here whats we’ve covered this week on pureelite
- HTML + XHTML Cheat Cheets
- CSS Cheatsheet
- MySQL Cheatsheet
- AJAX Cheatsheets
- PHP Cheatsheet
- Ruby on Rails Cheatsheet
- Wordpress Cheatsheet
So if you’ve enjoyed reading them, please comment and tell other people about them!
We meant to publish this earlier in the cheatsheet week but here it is, PHP Cheatsheet. If your going to code XHTML,CSS,AJAX and MySQL you WILL need PHP. PHP is probably the best thing I’ve ever come across online.
Its made my work simplier and faster. I can understand things faster and its generally just made my skills better. Before when I was using basic XHTML I had to quote clients with days and now i know some PHP Its put my work into a few hours. Over time, reading books, Talking to people and generally studying other peoples code I’ve learnt a huge amount.
Click here to download the PHP Cheatsheet
A few months ago, when we started, we did a very small post about Localhost. At the time i made soem assumptions about how it was working. Its hosted byMinthost and they’re equired for ruby on rails apps and they do boast this quite clearly. Either way, I thought the locical thing was, “this will be running on ruby” and it uses ajax and efefcts which made my decision more partial towards thinking it was running on ruby.
Well as I posted it, i had the main developer of it, commenting, see for yourself. Either way i was pwned and proven wrong. Although the guys great i do admire the small service he’s made. At the moment im using it more and anything and now thanks to ben, im using the program localhostr uploadr.
Either way the site actually works using Kohana PHP which is a dynamic framework for PHP5.Some of the features that grab my attention about the framework straight away is, the strict use of OOP and the multiple session drivers! Using the strict practice is always good if your going into work or your going to be publishing your code. More importantly, it always works better.
Kohana is a PHP 5 framework that uses the Model View Controller architectural pattern. It aims to be secure, lightweight, and easy to use.#
CodeIgniter is well known for they’re unique and easy framework and this is another easy framework to learn and use. I’ve been wanting to get my hands into the code for a while and when I can I will! This project is based upon the originallity of CodeIgniter. Being original in the online world is a mucst and being original will attract customers, viewers and supporters. As explained by some of our guest posters like Andrew Storey.
This frame work is a MUST to check out and in my opinion you’ll be missing out if you dont.
Theres a few things that everyone should have and one of those things is an up to date wordpress. The team at wordpress.org turn a new version out ever day but they dont “release” them. Insted they update an archive of the files at the following link.
Theres no real reason you should be updating everyday and for many people its a large waste of time, but if your an avid wordpress fan and you like to watch what progess the team make daily, then this might be for you.
http://wordpress.org/download/nightly/
I am currently working on a client (see listing here) the building they’re in uses IE6 so many of the users will be seeing the site on IE6. Website developers shouldnt have to put up with the site of people that cannot click the update button. I am not being stupid when i say that. I know that updating a few hundreds PC’s on a network will be hard but the point is. Your software is seven years old, YOU NEED TO UPDATE. Either way as much as i hate the shortcomings of IE6 i have to prepare for them. Annoying as it is I’m grabbing a little fun out of the whole situation. At the top of the website i have embeded this php script that quite clearly says to any IE6 user, UPDATE! Such a lovely message i think, so i suggest everyone follows suit and adds this adoring message.
The one advantage of this version of script is, it has built in jQuery to have effects and you can close the box at the top of the page.
http://www.thatgrafix.com/php_detect/
When I learned(i still am) php i used many websites and didnt go and waste my money on books. So please use the links below to the best of you advantage because they are simply the best websites for learning.
Many of my articles are inspired from comments posted there and on their forums. Have fun and be sure to comment if your going to go to the sites
- http://w3schools.com/php/default.asp
- http://www.tizag.com/phpT/index.php
Have fun




