the_content() returning null in one category only, even though there is content

Is there any way to output the raw, unfiltered post HTML to find out whether this is a rogue filter deleting all the content in that specific category for some weird reason? Yes there is, you can use $post->post_content. Try adding something like: echo ‘<pre>’.$post->post_content.'</pre>’; just before the_content() call in your template file. What else … Read more

How to disable JS? info windows from WP-FirePHP

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

Notice: attribute_escape is deprecated

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

Notice: Undefined index [closed]

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

Why does WP_DEBUG only work after wp_debug_mode() is called? [closed]

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

Suddenly lots of bugs in my WP installation? [closed]

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

PHP Notice – Custom Function

$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);