CDBrosnan's blog

WordPress/PHP Developer, Londoner, geek, gamer, Spurs fan

  • github
  • stackoverflow
  • linkedin
  • twitter
  • instagram
  • rss

Tutorial: Create a custom post type in WordPress

Custom post types can be used in your WordPress setup to create customised content similar to regular posts but with some differences. With a few lines of PHP code it is very easy to create a custom post type without the use of a plugin as I will show you in this tutorial. Open your theme’s Functions.php file: Along the side of the WordPress dashboard options, hover to ‘Appearance’ then.. Read More

Tutorial: Create a custom taxonomy in WordPress

Custom taxonomies can be used in WordPress to organise posts and custom post types similarly to how posts are organised into categories. In fact categories are a type of taxonomy to organise posts. An example of a custom taxonomy may be a ‘genre’ taxonomy to organise review posts, or a ‘location’ taxonomy to organise listings by area. Similarly to creating a custom post type, with a few lines of PHP.. Read More