WordPress.org

Ready to get started?Download WordPress

Forums

Feed Wrangler
Child Themes (1 post)

  1. ericjuden
    Member
    Posted 3 years ago #

    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');
        }
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by ericjuden
  • This topic is not a support question
  • WordPress version: 3.1.3