Custom posts mapping
-
I just want to share that mapping entire custom post type to new domain is easy. Just set in redirection slug of the cpt e.g.
main domain => /post-slug
And add this filter to functions.php or plugin, to fix for new home page of custom posts, which has slug e.g. homepage-slug :// map all custom post pages through MDM plugin
add_filter( ‘falke_mdmf_request_uri’, function($newRequestURI) {
? ?return $newRequestURI . ($newRequestURI === ‘/post-slug/’ ? ‘homepage-slug/’ : ”);
});
- The topic ‘Custom posts mapping’ is closed to new replies.