How to Change 404 page title

I would use the wp_title filter hook: function theme_slug_filter_wp_title( $title ) { if ( is_404() ) { $title=”ADD 404 TITLE TEXT HERE”; } // You can do other filtering here, or // just return $title return $title; } // Hook into wp_title filter hook add_filter( ‘wp_title’, ‘theme_slug_filter_wp_title’ ); This will play nicely with other Plugins … Read more

How do you get formatted content of a post using the WordPress API?

Post’s object field contains raw content as it is stored in database. This should format it to how it appears when retrieved with template tags: $content = apply_filters(‘the_content’, $content); This filters runs number of formatting functions, including shortcodes parsing. Something close to this: >>>>> the_content 8 (object) WP_Embed -> run_shortcode (1) (object) WP_Embed -> autoembed … Read more

How to use more than 256MB of memory in the admin?

Theoretically, editing your config.php and add this line before wp-settings.php inclusion. define(‘WP_MEMORY_LIMIT’, ‘256M’); should raise your memory limit for WordPress to 256MB or whatever value you set. And this will work sitewide. However, as sorich87 pointed out, there are few functions that will alter this setting with hard coded 256 MB limit. To Hack or … Read more