Полезное по Wordpress

05.05.2017

REDIRECT ATTACHMENT PAGES IN WORDPRESS:   https://www.orpical.com/quick-fix-redirect-attachment-pages-in-wordpress/

Суть:

Solution # 2 – Create image.php file

<?php wp_redirect(get_permalink($post->post_parent)); ?>

 


Теги: wordpress