Upgrade from 2.2 to 2.4 breaks wordpress themes
-
Hi
I have a custom theme with archive-news.php and single-news.php which provides styling for the news pages. Worked great in 2.2 however site auto upgraded to 2.4 and a grid with snippets appeared instead of the custom theme and no matter what I tried it just kept appearing. The single page style still works.
Inside the plugin the following file has been added. /templates/archive-news.php. Once I realised this I found news.php L119.
// $template = dirname( __FILE__ ) .’/files/templates/’. $file_name;
Commenting out this line allows my theme style to apply again. It appears applying a template in this way does not allow a theme template to be applied later.
Hope this helps.
- The topic ‘Upgrade from 2.2 to 2.4 breaks wordpress themes’ is closed to new replies.