How do I acquire all the meta-information for a particular page I am on?
you can inspect $wp_query to see the query vars and returned data, including all of those conditionals: <pre><?php print_r($wp_query); ?></pre>
you can inspect $wp_query to see the query vars and returned data, including all of those conditionals: <pre><?php print_r($wp_query); ?></pre>
WP-FirePHP installs two debuggers: FirePHP jQuery.debug This is only mentioned in passing on the WP-FirePHP plugin’s page. Sigh. To disable the jquery debugger, comment out a line in the WP-FirePHP plugin main file. See below. This can be done via the WP Plugin Edit command for the plugin. function WPFirePHP() { add_action( ‘admin_init’, array(&$this, ‘fb_exit’) … Read more
This proves that the problem isn’t core: I switched the theme to twentyeleven where the problem does not appear at all. Core functions are not throwing those notices. Your Theme is calling the deprecated function(s) somewhere – perhaps in a filer callback for the_title. Search your Theme files to find the culprit. Start in functions.php. … Read more
Try using the first code – that worked, but gave errors when submitted the form blank and just cahnge isset($_POST[‘name’] to: isset($_POST[‘name’] && !empty($_POST[‘name’] In your code you are triggering the $missing_content it the vars are empty. According to the spec (see reference) an empty (so not filled as in your case) string will trigger … Read more
Just take a look at its source: function wp_debug_mode() { if ( WP_DEBUG ) { error_reporting( E_ALL ); if ( WP_DEBUG_DISPLAY ) ini_set( ‘display_errors’, 1 ); elseif ( null !== WP_DEBUG_DISPLAY ) ini_set( ‘display_errors’, 0 ); if ( WP_DEBUG_LOG ) { ini_set( ‘log_errors’, 1 ); ini_set( ‘error_log’, WP_CONTENT_DIR . ‘/debug.log’ ); } } else { … Read more
Has your hosting setup changed? The first three errors indicate that PHP can no longer make HTTP requests. Check you have cURL enabled. Deprecated: Call-time pass-by-reference has been deprecated in /home/zoomingj/public_html/wp-content/themes/alltuts/functions.php on line 131 If you weren’t getting this error before, this indicates PHP has been upgraded – read up on how to fix the … Read more
$page = get_page_by_title($title) – this line is failing somewhere, so you should do a check on this to make sure it exists. Like so: function the_alt_title($title=””) { $page = get_page_by_title($title); if (!$page) { return $title; } if ($p = get_post_meta($page->ID, “_x_entry_alternate_index_title”, true)) { $title = $p; } return $title; } add_filter(‘the_title’, ‘the_alt_title’, 10, 1);
It’s Used to All class add to wordpress body element Using body_class(); function. Specifically, it’s used to adding body classes, removing body classes, conditionally adding body classes and some use cases. The Body Class: What Can It Be Used For? The body class in WordPress is a class or series of classes that are applied … Read more
You can’t really debug server errors without having really good access to the server itself. This would entail looking at the internal working of this particular host which I’m certain they would not allow nor spend any actual time trying to fix. Move to a better host if they cannot give you more details as … Read more
It is quite easy to pinpoint issues like this, that is, if you have a mirror installation locally. All you need is a fairly decent code editor with a basic search functionality. All you would need to do then is search your wp-content folder for the functions pinpointed in the debug notices. This way, you … Read more