Fix Disappearing Content in Themes

Fix Disappearing Content in Themes plugin fixes a bug found in some themes such as Hybrid based Themes where content and features added by plugins do

Author:Angelo Mandato (profile at wordpress.org)
WordPress version required:2.0
WordPress version tested:2.8.4
Plugin version:0.1.1
Added to WordPress repository:18-07-2009
Last updated:29-09-2009
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:52
Rated by:5
Plugin URI:http://www.wordpress.org/extend/plugins/hybri...
Total downloads:934
plugin download
Click to start download

Fix Disappearing Content in Themes plugin fixes a bug found in some themes such as Hybrid based Themes where content and features added by plugins do not appear in the page's body area.

If your site does not display content/features added by plugins, this plugin may fix the problem.

This plugin prevents plugins from adding content to the page until after the have_posts() call is made by the theme.

Bug Details

The problem occurs with themes that call the_excerpt(), get_the_excerpt(), the_content(), or get_the_content() functions in places such as in the HTML head area, header area of the page, or in a sidebar to display a short description of the page's content. Because the function call is made outside of the main content area, plugins will add their content prematurely and thus not appear in the page.

Technical Explanation of Fix

This plugin removes the hooks to get_the_excerpt() during the init action and restores the hooks during the loop_start action. This is so the get_the_excerpt calls made outside of the content loop do not call the plugin filters for get_the_excerpt. A temporary get_the_excerpt hook is added between these actions by this plugin which returns a better formatted excerpt for the theme to use.

The excerpt provided to the theme is better suited for excerpt use either in the page body or as content in a header meta description tag. The logic in this plugin removes the [...] which is added by WordPress when there are more than 55 words in the excerpt.