Assign Default Featured Images to Post by Category

I have been working on a new website recently – On My Bike. It’s a personal motivation website, I’m doing a lot of thinking, reflecting, etc. while I shop for a new bicycle. Once I get the bike I want to monitor some stats, etc. So I use IFTTT to relay data from my bike rides, scale, etc. to that new WordPress site. Those posts are automatic and I don’t get to set my featured image as they post. The theme I am using really looks best when featured images are included, so I wanted to add specific featured images per category since my auto posts are assigned their own categories. Here’s how I got that done.

Continue reading “Assign Default Featured Images to Post by Category”

Reader Request – Styling Sidebar Content or Widget Areas in the Twenty Twelve Theme

A reader dropped me a comment yesterday wondering how we style the widget areas here on VoodooPress. I’m always happy to answer questions whenever I can, so we will take a look at what I do here, give a little bit of code, and even touch on other things you could do to spruce up your widget area. Let’s dive right in!

Continue reading “Reader Request – Styling Sidebar Content or Widget Areas in the Twenty Twelve Theme”

Modify the Width of the New WordPress Twenty Twelve Theme

We just recently switched over to the new Twenty Twelve theme on VoodooPress, and it’s quite a nice theme! But one thing I saw immediately, it’s too narrow! I have been on a kick lately of trying to get all my sites to have nice, lightweight, clean themes. Twenty Twelve fits the bill. But it seems that everyone wants really narrow websites. A lot of folks have bigger monitors, I want to use some of that real estate. I’m not going to cover anything drastic here, but you can go as big or as small as you want with some careful planning. Note that, even though I’m showing how to make the theme wider, this will also work to make the theme narrower. Let’s dig in!

Continue reading “Modify the Width of the New WordPress Twenty Twelve Theme”

Posting on WordPress From the Front End

We’ve had an ongoing series of posts related to posting from the front end on WordPress. Even expanding on that to include editing and deleting. Those were very popular posts, and helped a lot of people. I wanted to guide people to an exciting series of tutorials that is ongoing on WPTuts+ right now. Check out this series¬†for some new information and tutorials for your front end posting needs. I haven’t had much time lately to work on that series, but I think you will find plenty of information in that tutorial to improve your code, and to learn from!

Let me know what you think of that tutorial? Does it work for you?

Set Your Featured Image Automagically From the First Image in the Post

Here’s a nifty trick that just came through my RSS reader. Let’s give credit where it’s due first because I didn’t come up with this! It came through my reader from the WP Snippets site, this post right here. We’re going to grab the first image from the post, and set it as your featured image automagically!

Continue reading “Set Your Featured Image Automagically From the First Image in the Post”

Development Tip: How to Know What Template is Being Used

I’ve been working on an overhaul of my personal blog for a while now. My old theme was pretty bloated, and way more than I needed since I offloaded everything away. The site used to have everything on it, but I moved all my WordPress posts to VoodooPress, and all my Voodoo Empire specific stuff to its own site. My blog doesn’t need all the features it had, and it was slowing things down. I haven’t had time to finish my custom theme, so in the meantime I decided to play around with some available themes, starting with Fanwood from DevPress. I have all of my custom stuff that used to be in the theme living in its own functionality plugin now. So I can activate any new theme, and within 20 minutes, have all my custom stuff in place. But the one problem I ran into – FanWood is a complex theme, not always using the standard WordPress templates I would expect – single.php for instance. Well, what’s an easy way to know what template is being loaded at all times? I’ve got the answer for ya!

Continue reading “Development Tip: How to Know What Template is Being Used”

Preserving Pagination With Query Posts – Why Do My Page 1 Posts Appear on Page 2?

So you’ve made a custom template of some sort, or you’ve tried to exclude a category from your home page. You used query_posts because that’s what all the cool kids are doing. But now when you click to go to the next page of your site, it says page 2, but you see all the same posts as page 1. Why is WordPress lying to you? Let’s take a look!

Continue reading “Preserving Pagination With Query Posts – Why Do My Page 1 Posts Appear on Page 2?”