0

I'm sticking with that problem:

I am able to redirect my custom post type archive page to a custom page easily but I am not being able to do the same with an archive page custom post type tag's.

Let's consider the custom post type 'movies'.

How to redirect the archive page 'horror' which is a tag from 'movies' ? I tried the code above

 if ( is_post_type_archive('movies') && is_tag(array( 10, '10', 'horror' )) ) {
wp_redirect( get_site_url()."/horror/", 301 );
exit; }

Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.