Hot answers tagged

2

In your wp-config.php make sure to include; define( 'WP_DEBUG', true ); define( 'WP_DEBUG_DISPLAY', true ); Sometimes your environment will do a better job at outputting the stack trace. If that doesn't work, you can go that line in WP core and add; $backtrace = debug_backtrace(); print('<pre>'); print_r ( $backtrace ); That should give you a ...


1

Anything outside the <?php ?> tags will be echoed as output since it has no conditions. The fastest way is to wrap in a function and output in the footer. add_action('wp_footer','custom_random_script'); function custom_random_script() { echo '<script> ......SCRIPT CONTENTS...... </script>'; } There is nothing technically ...



Only top voted, non community-wiki answers of a minimum length are eligible