Add Gravatars For The Post Author in WordPress

May 6, 2008

Now that Gravatar support is part of the WordPress core adding them into your WordPress theme is easy. Adding them to your comments has been documented. How about adding them to your post titles to highlight the comment author? Within the loop? That’s fairly easy too. Here’s the code: <?php echo get_avatar( get_the_author_email(), ‘64′ ); ?> Pretty simple, huh? get_the_author_email outputs the post author’s email and the “64” is the size of the avatar image in pixels (you can change that). How... [Read the full story]

Huge Compilation of WordPress Code

May 6, 2008

If you are a theme designer, or just enjoy customizing your existing WordPress theme, it can sometimes be a hassle digging around for the WordPress code you need. I’ve spent a lot of time on this site collecting various snippets of code since launch and decided that it would probably be more convenient and useful to people if I was to consolidate them all into one post for easy reference. Here are the snippets of code I’ve managed to collect. If you have any WordPress code you’d like me to add, please leave a comment... [Read the full story]

Creating a Custom Page Template

May 6, 2008

Sometimes creating a page within WordPress can be frustrating because it reformats the post and will sometimes break links or cause things not to display correctly. It can also be difficult to display videos or buttons within a page if you use the rich text editor built into WordPress. One thing I typically do in these situations is to create a custom page template for certain pages where I need more control over how it displays. Here is what you need to do. As a quick note, you will need some very basic HTML coding knowledge... [Read the full story]

Assigning a Name to Your PHP Files

May 6, 2008

By default, WordPress displays your php files by whatever the file name is. That means if you name your file wordpress.php, that is how it will show in your WordPress editor. When working with page templates, or if you just want to keep your files a little more organized, you’ll probably want to give your templates names. Here is all you need to do. Paste the following code at the top of the file: <?php /* Template Name: WordPress PHP */ ?> Now change WordPress PHP to be the name you want to use. Easy enough, right?   Read More →

Setting Up Your WordPress Permalink Structure

May 6, 2008

One of the great things about using WordPress is the built-in SEO advantages that this software gives you over building static pages or other blogging software. You have an advantage from the start over others not using WordPress! With that said, there are a lot of SEO techniques that need to be set up or applied by the user. The permalink structure is one of these that you can easily set up when creating your blog and then forget about it. By default, your WordPress Dashboard gives you a 3 choices to choose from. The default... [Read the full story]

Page 53 of 56« First...«5152535455»...Last »