In this article I’ll explain how to set up an events custom post type in WordPress and customise the results, before splitting the results into two blocks of pages in part 2.
This article is a follow on from Dynamic page titles in WordPress. Since title_tag was introduced in WordPress 4.1, it is now best practice to use this instead of wp_title, which will at some stage be deprecated. Here’s how you can do that.
If you are developing a custom theme in Wordpress and want custom page titles to display in your header or at the top of the page using the wp_title filter, you will have noticed that Wordpress by default adds the site title to the page title.