While working as a developer within WordPress there will often be times that you must preserve a particular URL structure. In this tutorial we will teach you how to redirect the archive of a Custom Post Type via a WordPress function.
If you’ve ever struggled with figuring out how to display a main title for a post type archive in WordPress or where it pulls from, we will teach you the simple solution intended by the WordPress codex.
While using the All in One SEO plugin for WordPress we ran into an issue, the Custom Post Type Archives were picking up the default archive page title structure and outputting %date% inside the page title, needless to say this doesn’t fly. So if you’ve been looking for a solution without having to hardcode it into the header file, check out our simple PHP function solution.