Child Themes
-
If you are using a child theme, you must put your custom feed files in the parent theme’s folder. As a workaround, you can edit the plugin code as below:
function load_feed() { // check if template exists in theme directory, use default RSS2 template otherwise if (file_exists(TEMPLATEPATH . '/feed-' . $this->slug . '.php')) { load_template(TEMPLATEPATH . '/feed-' . $this->slug . '.php'); } elseif(file_exists(STYLESHEETPATH .'/feed-' . $this->slug . '.php')){ load_template(STYLESHEETPATH . '/feed-' . $this->slug . '.php'); } else { load_template(ABSPATH . WPINC . '/feed-rss2.php'); } } function template_to_use() { if (file_exists(TEMPLATEPATH . '/feed-' . $this->slug . '.php')) { return('feed-' . $this->slug . '.php'); } elseif (file_exists(STYLESHEETPATH . '/feed-' . $this->slug . '.php')) { return('feed-' . $this->slug . '.php'); } else { return('default'); } }
- The topic ‘Child Themes’ is closed to new replies.