Customize Your Excerpt Length Per Template

I’ve seen a variety of posts from people devising different ways to customize the_excerpt length. In WordPress, most people are familiar with 2 ways to display their content: the_content, and the_excerpt. Both give fairly predictable results as to what you get. the_content gives you all of your content, with formatting intact. the_excerpt gives you your set excerpt, stripping away formatting, links, etc. But you had one excerpt length, and that was it! What if you want various excerpts? Well I’ve seen ways to craft various excerpts by creating different functions that had to be called per template, but as of WP 3.3 that is no more! Check it out!

Continue reading

Additional Post Formats For TwentyTen Child Theme, And Post Formats in General

EDIT: I recently found out a better way to add post formats to a Twenty-Ten child theme, scroll to the bottom of the post to check it out!

As we announced yesterday, WordPress 3.1 was released. Hopefully you have all upgraded by now. If not, get to it. Remember to always keep your install up to date with the latest release. Not just for the cool new features, but for security too. Anyway, if you recently upgraded to 3.1, you may be asking yourself the same question as I see others asking. Where are my post formats? WordPress 3.1 promised lots of different post formats, where are they? Let’s answer that question and tell you how to get them going if you don’t have them.

Continue reading

Modifying Headers From a TwentyTen Child Theme

In part of our ongoing series on modifying the twentyten theme we are going to look at the header.  You may decide that it’s not quite right for you.  Maybe you want to change the size, or add new custom default headers.  Well you can do all of that quite easily from your child theme.  I widened the theme to suit my taste, which is what lead my down this road.  Don’t worry, soon we will cover how to widen the twentyten theme.  But for now, let’s look at modifying the header, which leads us to our first look at WordPress’  action after_setup_theme.

Continue reading

Adding Content Under Your Post in a TwentyTen Child Theme

Over the weekend I installed Simple Twitter Connect (STC) and Simple Facebook Connect (SFC) here on VoodooPress.  They are my favourite plugins for total integration with each service.  And out of the box they work great.  You can have them just plop the ‘Like’ and ‘Tweet’ buttons under all your posts, and it works, and looks good.  But I’m picky.  I really only want my buttons manually placed exactly where I want them.  I’m using a twentyten child theme I made, and I wanted to insert the buttons only on single post views.  But I didn’t want to copy single.php from twentyten to use my own for just this.  I prefer to keep the original templates in use from the parent, and place any extra stuff through functions.php whenever possible.  I ran across several options, all of which worked in some fashion.  So let’s check out various ways to get content added under your post.  You can use the techniques here for pretty much any post, I’m just focusing on a twentyten child as that’s what I’m using.

Continue reading

Configuring Contact Form 7 to Work Perfectly With a Twentyten Child Theme

I needed a contact form for VoodooPress.  Normally I use cforms.  It’s very powerful, but it seemed like too much for a simple form.  I decided to give the Contact Form 7 plugin a try this time.  I came across a few challenges getting it set up perfectly with my twentyten child theme.  But it was a cool learning experience.  Let’s take a look at what I did.  A lot of this information may help you on themes besides twentyten as well, it’s just focused on that.

Continue reading

I See get_template_part in my WordPress Theme. What’s it For? How Do I Use It?

I have seen quite a few searches come through lately for get_template_part.  Seems like a lot of folks don’t know what it’s for, what it does, or how to use it in their WordPress theme.  When it was introduced with WordPress version 3.0 I wasn’t all that excited.  I didn’t see a need for it.  I was kind of set in my ways.  I liked how I did things.  But after looking into it for a while, I discovered it’s a powerful and useful tool.  Let’s take a look at what it does for you.

Continue reading

Custom WordPress Admin Screen Footer Text

Take a look down at the bottom of your admin panels.  What do you see?  There’s some text down there, probably:

Thank you for creating with WordPress. | Documentation | Feedback

What if you would like to replace that?  Well, it’s pretty darned easy!  Here we go again hooking into WordPress.  Just add this to your functions.php or an included file if you followed us here.

Continue reading