Loading custom script produces error when using shortlinks
-
I added some JavaScript using the method described in Load a script from your theme which depends upon a WordPress Script. The script doesn’t work, but that’s another issue…. My problem is that when I include a script this way pages will only load when a custom permalink is used, but if I use a shortlink all pages will output an error like this:
Warning: Cannot modify header information - headers already sent by (output started at /home/example.com/wp-content/themes/twentyten_subtheme/functions.php:2) in /home/example.com/wp-includes/pluggable.php on line 934What could be causing this problem?
Many thanks.
The topic ‘Loading custom script produces error when using shortlinks’ is closed to new replies.