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

As discussed in the comments, your database prefix settings are off-kilter. Check the database prefix actually in use in your database, and make sure it's the same as the one in wp-config.php. Also make sure all of your WordPress-related tables have the same prefix. You'll also need to search through your database, particularly in the _options table, as ...


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