Check out the WordPress Dictionary Plugin!

Tag: php


Using WordPress to create your page-based website

Posted on 1st July, by Anne in Development. 18 Comments

You’re a web designer, and you want to create a website – and like a lot of sites these days, it will be based around the pages, yet include a blog or news section. Congratulations! I am now going to give you a quick tutorial on making a page-based site using WordPress. This will make editing the pages easy, yet make it look like the blog is a separate installation.

If you have never touched PHP, roll up your sleeves and get ready to get dirty. I will try to make this relatively painless.

What you need!

WordPress

WordPress Plugins (Optional):

All In One SEO Pack
Contact Form 7
NexGen Gallery
PageMash
WP Google Analytics

Programs

You’ll need to BYOP but here are the ones I use:

TextMate OR any text editor
Transmit OR any FTP program

Services

Read More »



Tutorial: How to display short blog title in WordPress

Posted on 24th December, by Anne in Development. 13 Comments

As was recently pointed out to me by Andy in the comments, this post was quite out of date. I was fairly new to WordPress and had found a hacked way to modify the core of WordPress to return a short version of wp_title(); — but this is a method far from necessary and will always get removed when you update WordPress.

I opted to delete the out-of-date method, so that you only get the stuff that makes sense!

There is a simple script you can use to implement a short blog title without modifying the base WordPress code. Open up your functions.php file within your theme and add the following:

[php]function short_title() {
$title = get_the_title();
$count = strlen($title);
if ($count >= 25) {
$title = substr($title, 0, 25);
$title .= ‘…’;
}
echo $title;
}[/php]

You can now reference short_title(); anywhere within the … Read More »