我是wordpress的新手。将参数传递给javascript中的location.href而不是头文件()
我曾尝试下面的代码
header("Location: $location", true, $status);
我想重定向的页面,特定页面和我得到这样的错误
"Cannot modify header information - headers already sent by (output started at /home/content/c/l/a/clareb23/html/client4/wp-content/plugins/featured-articles-lite/main.php:773) in /home/content/c/l/a/clareb23/html/client4/wp-includes/pluggable.php on line 870"
的任何建议,将不胜感激。基于评论
如果您在WordPress的工作,那么你应该更好地利用wp_redirect()http://codex.wordpress.org/Function_Reference/wp_redirect – Anand
我使用'wp_redirect()',但它与插件代码冲突的.. 。 –