Redirect a page based on last word in slug
I have a couple custom post types registered = Staff, Properties If I have a page with the slug archive-staff, how can I automatically redirect that page to the Staff CPT archive page with a php function? This should also work for any page that starts with “archive-“, automatically redirecting to the archive of any … Read more