I like the idea of being able to post random bits of code and text files. So, I’ve created a custom post type for “snippets” in my WordPress theme. I’m not expecting to post a huge amount of snippets, but I do sometimes have some semi-interesting stuff that I’d like to share. For example, my humans.txt file :)
Tagged: custom post types
Tonight, I pushed a commit to my WordPress theme to include a new custom post type and taxonomy. The custom post type is ‘link’ and I’ve included it so that I can create short-form posts that link to some of the interesting content I come across on a daily basis.
Before I did this, I thought about whether or not I needed a custom post type. I mean, I could just use a category, or post format, but I figure that a custom post type will provide better separation, and the separation will possibly provide more options for front-end customisation. That said, I’m not entirely convinced of this, so I think I’ll see how well it works, and then decide if I keep it or not.
Talking of the front-end, I’ve not coded the custom post type templates, yet, but I’ll probably do that next.