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

How I Built My Nifty Login Box at the Top of VoodooPress

When you visit the site, you can see our nifty login/out and register box at the top of the page. Go ahead, take a peak! See it there? Cool! I wanted to add that into my theme, make it easy to move from site to site, and between themes. Let’s take a peak and see how that’s done!

Continue reading

Remove the Home Link From TwentyEleven’s Page Fallback Menu

Here’s a quick request. Hopefully by now most of us know how to use WordPress custom menu creator. It works great, and alloows for any type of menu to be created. But let’s say you are using twentyeleven, and you are totally happy with it. And, you don’t feel like making a custom menu… you want to stick with the default fallback, wp_list_pages. The only thing that bugs you is that pesky home link…. here’s the answer!

Continue reading

Disable bbPress and bbPress Post Toolbar Scripts and Styles if Not on a Forum Page

Here’s a quick little tidbit for you. I was recently working on a few small things to make my site load a bit faster, and I was digging through all my scripts and styles that load. I noticed that the scripts and styles for the bbPress 2.x plugin and the bbPress Post Toolbar plugin loaded on every page. Here’s a quick fix to load them only on an actual bbPress page.

Continue reading

Additional Colour Schemes for Your TwentyEleven Child Theme

I’ve wanted to add an additional colour scheme to my child theme here on VoodooPress since the twentyeleven theme first came out in it’s very early stages. I had pecked around at it from the start, but the code kept changing in the early days. After that I got pretty busy, and haven’t been able to revisit the idea until now. With a little bit of help from Alchymyth and Zeaks I’ve got a new colour scheme set up on here. I haven’t done anything with it yet, but the foundation is in place. Let’s take a look at how to add some additional colour schemes to your 2011 child theme.

Continue reading

Running Queries From Functions.php (or a plugin)

UPDATE: This tutorial is slightly incomplete. We forgot to limit our query to the main content of the pageonly, to keep it from affecting widgets, menus, etc. See the update here for the rest of the info you’ll need, it’s a simple fix!

I was working on my new company site for The Voodoo Empire. One of the things I had set up was a new members page. It’s a directory of all of our members. They get input as we add new members. So the oldest members (the founders) got input first, and new members would get added as they join. That makes sense. Any new members we add will of course get added as they join. But then on the front end, they display in that same order, newest members on top. Well for a members page, it makes sense to me to have the founding members at the top of the page, with newer members at the bottom. So, how to reverse the order of posts on this page? Here’s a simple solution for that!

Continue reading

Making a Basic Plugin and Widget to Display Followers, Fans and Subscribers

I’ve never made a plugin before. I really never thought I had a need. But recently I changed my way of thinking. So I decided to learn how to make a plugin to display my followers, fans and subscribers in a widget. Now this widget is about as basic as possible. But it’s a starting point. I learned something, and maybe you can too! Let’s take a look at the why and how.

Continue reading

Add a Widget Area Under Your First Post, Great For Ads or Pictures

I’m always experimenting with VoodooPress. This time I was looking to place a widget area under my first post. Personally I was looking to experiment with ad placement. I’m not sure if I’m sold on this location or not. But if I change my mind, this widget area could be useful for so many other things like images, or recent/popular post thumbnails. Let’s take a look at adding this widget area.

Continue reading

Display a Thumbnail in Your Admin Panel Post List

If you followed along yesterday, we set up a new thumbail size to be used in our admin panel. I find this a handy feature because I like to be able to see things. It helps jog my memory on each post. Besides that, it’s just plain cool. Let’s take a look how to add our new image size into the admin panel posts list.

Continue reading

Add Image Size in a Twenty Ten Child Theme

I’ve seena few people stumble on this site searching for a way to add a featured/thumbnail image size to their child theme. This is something I needed to do recently, so we will take a look at it. This is also in preparation for tomorrows article where we will add a thumbnail image to the post list page in the admin panel. If we don’t create a new image size, the default header image size gets used, that obviously looks terrible in the list of posts on the admin side. We need nice little thumbnails. Here’s how to do it:

Continue reading