Redirect Single Post CPT (Custom Post Type) to a specific URL

Question

I have a domain domain.com and subdomain materials.domain.com

At the domain.com scope, I created a custom post type called resources and a portfolio grid (using Elementor) to display it’s featured image with the title.

When clicking on the grid item, the single post is shown for example: domain.com/resources/resource-title

I’d like to remove the single post from the domain and redirect on click to materials.domain.com/resource-title. I already have this page on the materialssubdomain).

How can I achieve that?

0
, , user1301037 1 year 2020-07-16T10:10:29-05:00 0 Answers 55 views 0

Leave an answer

Browse
Browse