WordPress: Create a Custom Widget (Part 1)

| 0 comments

This entry is part of my WordPress development series, providing tutorials on specific things you can do in WordPress. Read some more?

WordPress provides a lot of default Widgets that can be useful for displaying additional content in sidebars, footers, etc. But sometimes you may want to use a widget to display content that isn’t available in one of the default widgets, or you want to display the content in a different way. In Part 1 of this tutorial, I will show you how to create a basic custom widget, without any options, that you can use throughout your website to display whatever content you like!

Read More »

Where did 2013 go?!

| 0 comments

Apparently 2013 doesn’t exist on my website! Wow, I missed a whole year of potential blogging. But, what a year it was! Though I’m not usually one to reflect on a year gone by in a post, I do want to highlight some things that happened that I think were pretty awesome (and why I was MIA)!

  • At the beginning of the year I moved into my own place – no more roommates! I still have pictures to hang up…
  • I got to see Armin van Buuren, which was a lot of fun.
  • I went to Europe for a week (I know right, only a week?!) to see Liliana, one of my closest friends. I got to spend time in Utrecht, Amsterdam, and even went to Prague for a few days! I can’t wait to go back.
  • Went to WordCamp Vancouver, of course, where I got a bunch of cool swag and got to catch up with Chris from VIU.
  • And of course, busy busy at work! Which means sometimes you just don’t want to look at a computer on the weekends. 🙂

Now that we are almost done January of this year, I can see it really is going by so fast already. For a few weeks now I’ve had ideas swimming around in my head for potential ideas to blog about. I plan to continue my WordPress series, whether it is with more complex tutorials, or small but helpful bits and pieces. I also would like to start an HTML email series, as over the past year I have been doing more and more HTML emails, and yes… I do kinda sorta maybe like them. A little.

They’re like a puzzle, okay?

I doubt I’ll have a chance to pop out a post before the rest of this month is up, so stay tuned for some articles and tutorials coming next month!

What exciting things did you get around to in 2013? Share below!

Happy Holidays!

| 0 comments

Happy Holidays everyone!

I have been meaning to post a lot sooner than now (busy, busy!), specifically about WordCamp Vancouver that I went to back in October. Well, I will say now that I had a GREAT time at WordCamp and definitely recommend it. They are held in many, many cities, so just go to the WordCamp Central website to see if one is happening soon near you! I will definitely be going next year.

2012 is nearly over, and it sure has flown by. What a year! I graduated from Vancouver Island University with my degree in Digital Media Studies, I moved off “the rock”, and I am now working at the fabulous Bstro. I can’t wait to see what 2013 has in store!

I wish you all very Happy Holidays, and a fabulous New Year! See you in 2013. 🙂

WordPress: Multiple Search Forms

| 4 comments

This entry is part of my WordPress development series, providing tutorials on specific things you can do in WordPress. Read some more?

Sometimes you may need to have multiple search forms within your website. You can easily call the WordPress function get_search_form() wherever you want your search forms to be. An example of this could be when you have a search input in the header or footer of your website. But then, you may have a search form at the top of your mobile navigation that slides out on mobile devices. Or, there’s one on the Search page of your website as well when there’s no results.

However, if you’re someone (like me) who tries to have valid code (or as close as we get), then this won’t work with the default WordPress search form because it will use the same ID for each one, which won’t validate.

Read More »

WordPress: Sortable Custom Columns

| 2 comments

This entry is part of my WordPress development series, providing tutorials on specific things you can do in WordPress. Read some more?

Continuing on from the previous tutorial where we added custom columns, we are now going to make these columns sortable like the regular default columns in WordPress (such as post/page title and publish date).

For simplicity, we will continue to work in our functions.php file. You can edit this file by going to Appearance > Editor in your WordPress admin panel, or using a text editor with FTP.

From the last tutorial, I have already created my custom columns for my custom post type “Cats”. So first we have to tell WordPress to make our columns sortable using the function add_filter().

// Make columns sortable
add_filter( 'manage_edit-cf_cats_sortable_columns', 'cats_sortable_cols' );

function cats_sortable_cols( $columns ) {

	$columns['age'] = 'age';
	$columns['toy'] = 'toy';

	return $columns;
}

Read More »

WordPress: Adding Custom Columns

| 0 comments

This entry is part of my WordPress development series, providing tutorials on specific things you can do in WordPress. Read some more?

This tutorial is going to show you how to take the metadata stored in your custom meta box (or boxes) from your custom post type and display it as columns on the browse or “All” page – for my custom post type, that would be the page “Cats”. This is a great way to show some extra information about your custom posts at once without having to go to each individual post. Continuing on from the previous tutorial, I am going to display the age and favourite toy metadata that I stored for my cat Azaezel.

For simplicity, we will continue to work in our functions.php file. You can edit this file by going to Appearance > Editor in your WordPress admin panel, or using a text editor with FTP.

To begin, we first have to create the columns. We do this by using the function add_filter().

Read More »